s-news
[Top] [All Lists]

Re: Trellis colors

To: "'Roberts, J. Kyle'" <jkrobert@bcm.tmc.edu>, <s-news@lists.biostat.wustl.edu>
Subject: Re: Trellis colors
From: <Rich@Mango-Solutions.com>
Date: Mon, 31 Oct 2005 17:10:05 -0000
In-reply-to: <1FA4FE4BC3E0C24DABCFEA3E31C7CA403F654F@BCMEVS1.ad.bcm.edu>
Thread-index: AcXePGRVtBrApfJHTCmP4be4bJmuEQAAUmPQ

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

 

Dear All,

 

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")

line$col<-1

trellis.par.set("plot.line", line)

 

####Changes the color of the plots

new.symbol<-trellis.par.get("plot.symbol")

new.symbol$col<-1

trellis.par.set("plot.symbol", new.symbol)

 

#### Plots the regression lines for each group

plot(augPred(lme.out.2))

 

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.

 

Thanks,

Kyle

 

 

***************************************

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

***************************************

 

<Prev in Thread] Current Thread [Next in Thread>