<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:18pt"><div style="font-family: arial, helvetica, sans-serif; font-size: 18pt; "><span>Boa noite senhores!!</span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 18pt; "><span><br></span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 18pt; "><span>Após ler quase todos os tópicos do nabble internacional de como adicionar pontos com "wireframe" e manipular de tudo qualquer jeito as funções panel.3d.INFERNO e outras milhões de funções da lattice para tentar fazer uma coisa simples, venho recorrer novamente a ajuda dos senhores. Tenho o seguinte CMR.</span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 18pt; "><span class="Apple-style-span" style="font-size: 24px; "><br></span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 18pt; "><span
class="Apple-style-span" style="font-size: 24px; ">require(plotrix)</span><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 18pt; "><span class="Apple-style-span" style="font-size: 24px; ">jet.colors <- colorRampPalette( c("blue", "green") ) </span><br></div><div><span><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="5">x <- seq(-1.95, 1.95, length=30)</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="5">y <- seq(-1.95, 1.95, length=35)</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="5">da <- expand.grid(x=x, y=y)</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="5">da$z <- with(da, x*y^2)</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="5"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica,
sans-serif" size="5">require(lattice)</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="5">panel.3d.contour <-</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="5"> function(x, y, z, rot.mat, distance,</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="5"> nlevels = 20, zlim.scaled, ...)</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="5"> {</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="5"> add.line <- trellis.par.get("add.line")</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="5"> panel.3dwire(x, y, z, rot.mat, distance,</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="5">
zlim.scaled = zlim.scaled, ...)</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="5"> clines <-</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="5"> contourLines(x, y, matrix(z, nrow = length(x), byrow = TRUE),</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="5"> nlevels = nlevels)</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="5"> for (ll in clines) {</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="5"> m <- ltransform3dto3d(rbind(ll$x, ll$y, zlim.scaled[1]),</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="5">
rot.mat, distance)</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="5"> panel.lines(m[1,], m[2,], col = add.line$col,</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="5"> lty = add.line$lty, lwd = add.line$lwd)</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="5"> }</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="5"> }</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="5">wireframe(z~x+y, da, drape=TRUE, scales=list(arrows=FALSE),col.regions=jet.colors(100),panel.3d.wireframe="panel.3d.contour")</font></div><div><font class="Apple-style-span" face="arial, helvetica,
sans-serif" size="5"> </font></div></span><span style="font-family: arial, helvetica, sans-serif; font-size: 18pt; ">Gostaria de indicar no gráfico o(s) ponto(s) (coordenadas x,y e z) de sela, para tornar o gráfico autoexplicativo.</span></div><div><span style="font-family: arial, helvetica, sans-serif; font-size: 18pt; "><br></span></div><div><span style="font-family: arial, helvetica, sans-serif; font-size: 18pt; ">Desde já agradeço mais uma vez a atenção de todos.</span></div><div><span style="font-family: arial, helvetica, sans-serif; font-size: 18pt; "><br></span></div><div><span style="font-family: arial, helvetica, sans-serif; font-size: 18pt; ">Allaman</span></div><div><span style="font-family: arial, helvetica, sans-serif; font-size: 18pt; ">(S,f,P)</span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 18pt; "> </div><div style="font-family: arial, helvetica, sans-serif; font-size: 18pt; background-color:
transparent; color: rgb(115, 115, 115); " align="center"><b>M.Sc Ivan Bezerra Allaman</b> <br>Zootecnista<br><font style="background-color:transparent;" face="comic sans ms" size="2"><font style="background-color:transparent;">Doutorando em Produção Animal/Aquicultura - UFLA</font> <br></font><font size="2"><i><strong></strong></i></font><font style="background-color:transparent;" face="comic sans ms" size="2">email e msn - ivanalaman@yahoo.com.br <br><font size="1">Tel: (35)3826-6608/9900-2924</font></font></div></div></body></html>