Skip to content
Back to formatted view

Raw Message

Message-ID: <1267037323064-1567882.post@n4.nabble.com>
Date: 2010-02-24T18:48:43Z
From: Dieter Menne
Subject: Changing style for groups in xyplot
In-Reply-To: <4B854CE0.60104@gmx.de>

Antje Steller wrote:
> 
> Hello,
> Now I would like to change how the different groups are displayed - now
> they are circles in different colors, and I would like to change those
> colors.
> 
> ..
> my complete xyplot command right now looks like this:
> 
> xyplot(a ~ b| t*h, groups=r, xlab="Zyklen", ylab="Riss [%]",
> auto.key=list(lab=levels(r),columns=3))
> 
> 

My preferred method is to change the colors globally to enforce consistency.

sup = trellis.par.get("superpose.symbol")
sub
# make changes to sup$col and possible to sup$fill and sub$pch
trellis.par.set("superpose.symbol",sub)
show.settings()
# Do your plotting

I you want better answer, prepare an example with dummy data. The call to
xyplot you showed is not "complete".

Dieter



-- 
View this message in context: http://n4.nabble.com/Changing-style-for-groups-in-xyplot-tp1567655p1567882.html
Sent from the R help mailing list archive at Nabble.com.