Skip to content
Prev 808 / 1236 Next

[R-gui] Lattice graphics

You are using the wrong locations for "at".
There is nothing in f_xy that defines the -3:3 scale.

x <- matrix(round(seq(-3.4,3.4,0.2), 2), ncol=1);
f_xy <- dnorm(x)%*%t(dnorm(x))

labat <- which(x %% 1 == 0)

wireframe(f_xy, col="blue", pretty=TRUE, drape=TRUE,
      scales=list(arrows=FALSE,
         x=list(at=labat,labels=x[labat]),
         y=list(at=labat,labels=x[labat]) ),
      xlab="x",
      ylab="y",
      zlab=list(expression(f[xy])),
      main="Bivariate Normal Density")


On Sat, Jun 28, 2008 at 3:55 AM, H. Lawrence Hotchkiss
<larryh at zebra.us.udel.edu> wrote: