[R] wireframe: how to remove the frame around my plot?
Alexis J. Diamond
adiamond at fas.harvard.edu
Thu Jul 24 22:27:51 CEST 2003
thank you for your quick reply.
your advice removes the 3D box in which the 3D plot is generated,
but i like THAT box. (sorry for being unclear earlier)
what i want to do is remove the 2D frame (a box of thin black lines) that
circumscribes all of my plot area. any ideas?
On Thu, 24 Jul 2003, Jerome Asselin wrote:
> 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.
> 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
More information about the R-help