[R] Lattice background color answer
Bliese, Paul D MAJ WRAIR-Wash DC
Paul.Bliese at NA.AMEDD.ARMY.MIL
Tue May 28 12:30:57 CEST 2002
It turns out that there is a color named "transparent" that does the trick
with the trellis device. Thanks to Brian Ripley for pointing it out.
trellis.device(bg="transparent")
My original post is below, but it boils down to "how can I make a trellis
graph that doesn't contain any background color?" This can be useful when
you paste graphics into documents that have non-white backgrounds.
Paranthetically, I note that his response to my question (5/27/02 4:43
PM)actually made it to my mailbox before my actual question did (5/27/02
4:48 PM)...one doesn't get much quicker advice than that.
PB
-----Original Message-----
From: Bliese, Paul D MAJ WRAIR-Wash DC
To: 'r-help at stat.math.ethz.ch'
Sent: 5/27/02 3:51 PM
Subject: [R] lattice background color
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)
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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