[R] lattice background color

Bliese, Paul D MAJ WRAIR-Wash DC Paul.Bliese at NA.AMEDD.ARMY.MIL
Mon May 27 21:51:19 CEST 2002


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)


Using Windows 2000, and R 1.5.0. with the default lattice package.

Paul
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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