Finally, I think this works. The function trellis.par.get() contains all default values of the parameters. I had to reset the option "axis.line" as below. The bounding (square) box is made transparent. See trellis.par.get() for the list of all default parameter values.
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)) trellis.par.set("axis.line",list(col=NA,lty=1,lwd=1)) wireframe(z ~ x * y, g, drape = TRUE, perspective = FALSE, aspect = c(3,1), colorkey = FALSE) On July 24, 2003 02:41 pm, Alexis J. Diamond wrote: > hi jake, > > thanks for your e-mail. > > what i am actually trying to do is remove the 'picture frame' 2D box > (the super-frame) that circumscribes the entire figure-- for example, > the left vertical side of this box i'm concerned about is to the left of > the 'z' axis label. i hope i'm finally making my query clear. > > both of your examples below retain this pictureframe box (jerome's > examples do too), when the output is viewed as a .eps file in ghostcript > viewer, so i am still stuck, > unfortunately. > > there's got to be a parameter that modifies this picureframe box's color > and style, right? > > thanks again, > > alexis > > On Thu, 24 Jul 2003, Jake Bowers wrote: > > Hi Y'all, > > > > Alexis, I think Jerome's example works except for one change: > > > > This one has a box but no "wires": > > > > wireframe(z ~ x * y, g, drape = TRUE, > > perspective = FALSE, > > aspect = c(3,1), colorkey = FALSE, > > par.box = list(col=1),col=NA) > > > > versus with no box and no "wires": > > > > wireframe(z ~ x * y, g, drape = TRUE, > > perspective = FALSE, > > aspect = c(3,1), colorkey = FALSE, > > par.box = list(col=NA),col=NA) > > > > Hope this helps! > > > > Jake > > ----- > > Jake Bowers > > Dept of Political Science > > University of Michigan > > > > On Thu, 24 Jul 2003, Alexis J. Diamond wrote: > > > hi jerome, > > > > > > 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? > > > > > > thanks again, > > > > > > alexis > > > > > > 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. > > > > > > > > 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 > > > > > > > > > > ______________________________________________ > > > > > [EMAIL PROTECTED] mailing list > > > > > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > > > > > > ______________________________________________ > > > [EMAIL PROTECTED] mailing list > > > https://www.stat.math.ethz.ch/mailman/listinfo/r-help ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help