Giving different colors to plots of different levels of a factor can be pleasing. For a boxplot, for example, the following produces a nice plot:
boxplot(len~supp*dose, data=ToothGrowth, col=c(“orange”,”gray”)) If I try to specify (using the lattice package) histogram(~len|supp*factor(dose), data=ToothGrowth, col=c("orange","gray")) the effect is unexpected! (and certainly not desirable) How does one do the same with histograms using the lattice package? Also, how do I get more control over the colors of the "title bars" for each pane in the lattice of graphs using the lattice package? Ravi ______________________________________________ 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.