What is the simplest way to make just this plot grayscale (or perhaps black and white) rather than the default multi-colour:
xyplot(y1 + y2 ~ x, mydata, auto.key
library(lattice) bwtheme <- standard.theme("pdf", color=FALSE) mydata <- data.frame(y1=rnorm(10), y2=rnorm(10), x=1:10) xyplot(y1 + y2 ~ x, mydata, auto.key=TRUE, par.settings=bwtheme)
For comparison: