hi, i have a figure with many boxplots and want to differentiate one group of the boxplots by colour of the box. so for example: X <- replicate(3,rnorm(100)) bwplot(X[,1]~as.factor(X[,2]>1)|X[,3]>0) # this gives four boxplots, i'd like to give 1 and 3 a different colour than 2 and 3 # i tried bwplot(X[,1]~as.factor(X[,2]>1)|X[,3]>0,groups=as.factor(X[,2]>1)) but that does not change the display? how can i change the colour for groups with bwplot? thanks. tom
Maybe Matching Threads
- Weighted box or violin plots in Lattice?
- Colour filling in panel.bwplot from lattice
- (Lattice) How to improve the readability of a bwplot, i.e. separating groups somehow
- Lattice::bwplot unexpected behaviour when using vector of colors
- Lattice::bwplot unexpected behaviour when using vector of colors