Re: [R] Same boxplot colors by panels in lattice (bwplot)

2013-04-08 Thread Concha Bielza
ber()]) } ) ) Thanks, Concha __ 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

Re: [R] Same boxplot colors by panels in lattice (bwplot)

2013-04-08 Thread Concha Bielza
ary(HH) > bwplot(b~x|a,data=DF, panel=panel.bwplot.intermediate.hh, > col = c("darkorange1","limegreen","magenta")) > > Rich > > On Sun, Apr 7, 2013 at 4:45 PM, Concha Bielza <mailto:mcbie...@fi.upm.es>> wrote: > > Dear all,

[R] Same boxplot colors by panels in lattice (bwplot)

2013-04-07 Thread Concha Bielza
Dear all, I would like to have the same color for the all boxplots from the same panel, but my code below shows the two colors alternating. Thanks! set.seed(42) D1 <- rnorm(200) D2 <- factor(sample(letters[1:2],200,TRUE)) D3 <- factor(sample(letters[3:5],200,TRUE)) DF <- data.frame(x=D1,a=D2,b