[R] Lattice: change background of conditioning variable box

Erik Iverson eiverson at NMDP.ORG
Wed Aug 5 16:53:36 CEST 2009


Does changing the color argument of the default theme associated with the device to what you want?

See the "color" argument in ?trellis.device.  

As an example, try the following with and without the "trellis.device" call...

trellis.device(color = FALSE)
        groups = FALSE,
        index.cond = function(x, y) median(x),
        layout = c(1, 5),
        main = "test1",
        type = c("p", "h"),
        xlab = "Expenditure (billions)")

Erik Iverson

-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Alex van der Spek
Sent: Wednesday, August 05, 2009 6:35 AM
To: r-help at r-project.org
Subject: [R] Lattice: change background of conditioning variable box

For publication purposes I need to come up with B&W images (grey codes
allowed). For normal R graphics this presents no problem.

For lattice graphics, I can get everything B&W except for the box in
which the conditioning variables are written per panel.

I have searched the manuals but to no avail. Is there anyone who can
point me in the right direction?

Thanks in advance!
Alex van der Spek

R-help at r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list