Skip to content
Back to formatted view

Raw Message

Message-ID: <1330184293088-4420296.post@n4.nabble.com>
Date: 2012-02-25T15:38:13Z
From: Dieter Menne
Subject: lattice/seqplot group colors
In-Reply-To: <1330183761183-4420288.post@n4.nabble.com>

Found it. Use level instead of groups. 

# seqplot bar coloring
library(latticeExtra)
d = data.frame(acid=letters[1:10],lwr=rnorm(10),
               essential=rep(c(TRUE,FALSE),each=5))
d$upr = d$lwr+1

# Works as expected
barchart(acid~lwr,data=d,
         groups=essential,
         par.settings=list(plot.polygon=list(col=c("red","blue"))))

# looks like groups not used
segplot(acid~lwr+upr,data=d,
        level=essential,
        par.settings=list(plot.polygon=list(col=c("red","blue"))))





--
View this message in context: http://r.789695.n4.nabble.com/lattice-seqplot-group-colors-tp4420288p4420296.html
Sent from the R help mailing list archive at Nabble.com.