I am trying to get segplot honor the groups parameter like barchart does. The
below give an incorrect display for segplot.

Any help?

Dieter

# 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,
        groups=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-tp4420288p4420288.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@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.

Reply via email to