You can alter the strip colours using the strip.background
and strip.shingle attributes. You can also vary the style of the strips
drawn using the strip argument to the trellis calls.
For example, xyplot(……, strip=function(…)
strip.default(…, style=1)) to remove highlighted “shingle”
regions of strip headers.
> trellis.par.get("strip.background")
$col:
[1] 12 11 9 13 10 15 14
> trellis.par.get("strip.shingle")
$col:
[1] 5 4 2 6 3 8 7
Rich.
From:
s-news-owner@lists.biostat.wustl.edu
[mailto:s-news-owner@lists.biostat.wustl.edu] On
Behalf Of Roberts, J. Kyle
Sent: 31 October 2005 16:59
To: s-news@lists.biostat.wustl.edu
Subject: [S] Trellis colors
I use the following commands to change the plot and line
colors of a Trellis graph to black for use in publications.
#### Changes the color of the lines
line<-trellis.par.get("plot.line")
trellis.par.set("plot.line", line)
####Changes the color of the plots
new.symbol<-trellis.par.get("plot.symbol")
trellis.par.set("plot.symbol", new.symbol)
#### Plots the regression lines for each group
What command do I use to change the color of the
orange/yellow bar above each graph? I have looked everywhere, but can't
find it.
***************************************
J. Kyle Roberts, Ph.D.
Baylor College of Medicine
Center for Educational Outreach
One Baylor Plaza,
MS: BCM411
Houston, TX 77030-3411
713-798-6672 - 713-798-8201 Fax
jkrobert@bcm.edu
***************************************