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
Lattice: change background of conditioning variable box
3 messages · Alex van der Spek, Erik Iverson
Alex,
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)
dotplot(t(USPersonalExpenditure),
groups = FALSE,
index.cond = function(x, y) median(x),
layout = c(1, 5),
main = "test1",
type = c("p", "h"),
xlab = "Expenditure (billions)")
HTH,
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
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.
Yes it does! Thank you Erik! I had not thought about searching under 'trellis'! Alex van der Spek
On Wed, 2009-08-05 at 09:53 -0500, Erik Iverson wrote:
Alex,
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)
dotplot(t(USPersonalExpenditure),
groups = FALSE,
index.cond = function(x, y) median(x),
layout = c(1, 5),
main = "test1",
type = c("p", "h"),
xlab = "Expenditure (billions)")
HTH,
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 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.