[R] wireframe: how to remove the frame around my plot?

Jerome Asselin jerome at hivnet.ubc.ca
Thu Jul 24 22:37:12 CEST 2003


Here is another try... I've added col=NA at the end.

     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),col=NA)

If that still doesn't do it, could you provide us with a toy example (like 
I did) which does what you want (but with only the frame you're talking 
about on it)? Then we could understand better what you want to do rather 
than guess.

Cheers,
Jerome


On July 24, 2003 01:07 pm, 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.
>
> 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
>
> ______________________________________________
> 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 mailing list