Alexis J. Diamond
2003-Jul-24 19:44 UTC
[R] wireframe: how to remove the frame around my plot?
Hi, I've got a wireframe 3D surface plot, but I don't want a frame around it. Is there any way to remove the frame, or (worst case) change the color of the frame to the background color (which looks like grey). I'm using ver 1.7.1 I've tried frame.plot = F, but that doesn't seem to work for 'wireframe'. Many thanks, Alexis Diamond
Jerome Asselin
2003-Jul-24 20:07 UTC
[R] wireframe: how to remove the frame around my plot?
You can specify some options in "par.box". Use col=NA to make the frame transparent. See example below (which was modified from the help file). See also the "scales" parameter if you want to remove the arrows as well. Cheers, Jerome library(lattice) x <- seq(-pi, pi, len = 20) y <- seq(-pi, pi, len = 20) g <- expand.grid(x = x, y = y) g$z <- sin(sqrt(g$x^2 + g$y^2)) wireframe(z ~ x * y, g, drape = TRUE, perspective = FALSE, aspect = c(3,1), colorkey = FALSE, par.box = list(col=NA)) On July 24, 2003 12:44 pm, Alexis J. Diamond wrote:> Hi, > > I've got a wireframe 3D surface plot, but I don't want a frame around > it. Is there any way to remove the frame, or (worst case) > change the color of the frame to the background color (which looks like > grey). > > I'm using ver 1.7.1 > > I've tried frame.plot = F, but that doesn't seem to work for > 'wireframe'. > > Many thanks, > > Alexis Diamond > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help