On Wed, Aug 5, 2009 at 6:27 PM, Jacob Wegelin<jacob.wege...@gmail.com> wrote: > Is there a simple way to specify a theme or trellis (lattice) parameters so > that, in a multipanel (conditioned) plot, there is no color and in the > strips there is no shading? This is the effect achieved on page 124 of > Deepayan Sarkar's "Lattice" (figure 7.2). > I managed to trick lattice into making a grayscale plot on my interactive > display as follows: > >> graphics.off() >> postscript("junk.ps") >> mystuff<-trellis.par.get() >> graphics.off() >> trellis.par.set(mystuff) > > Then when I made a multipanel (conditioned) plot, at least there was no > color, but the strips contained gray shading. Is this the "black and white > theme"?
Yes, and an easier way to start using it is trellis.device(color = FALSE) > If one wants strips with white background (no shading), as in the > example cited above, must one go deeper into the details of the settings or > write one's own panel or strip function? If you want to do this for all your lattice plots, here's something you can execute on startup: lattice.options(default.theme = modifyList(standard.theme(color = FALSE), list(strip.background = list(col = "transparent")))) -Deepayan ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.