[R] lattice background color

ripley@stats.ox.ac.uk ripley at stats.ox.ac.uk
Mon May 27 22:33:48 CEST 2002

On Mon, 27 May 2002, Bliese, Paul D MAJ WRAIR-Wash DC wrote:

> I'm sure there is a simple answer to this question, but it stumps me so far.
> I've been using R to create graphic images and paste them into other
> programs (Word, PowerPoint).
> Recently, I've been using lattice (wonderful package), but I can't figure
> out how to create graphs in lattice that don't have a background color --
> that is, my graphs carry over the grey background if I use the default.  I
> can change the background color to white, and as long as I paste the picture
> into a white document everything is fine, but that only works for white
> documents.
> Any ideas on how to get a NULL background color.  Note that the non-lattice
> graphics do not carry over the background color.  The following simple
> solution does NOT work:
> > trellis.device(bg=NULL)


NULL is not a colour, is it?

Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list