On 2010-05-19 9:02, Marius Hofert wrote:
Hi,
How can I specify the strip text in the xyplot below?
I also tried to work with strip.names=c("TRUE","TRUE"), but that did not work.
Cheers,
Marius
library(lattice)
x<- 1:10
y<- cbind(1:10,-(1:10))
xyplot(y[,1]+y[,2]~x,outer=TRUE,strip=function(var.name,...)
strip.default(var.name=c("plot 1","plot 2"),...))
xyplot(y[,1]+y[,2]~x,outer=TRUE,
strip = strip.custom(factor.levels = c("plot 1","plot 2")))
-Peter Ehlers
______________________________________________
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.