[R] lattice: How to specify strip text in an xyplot?

Marius Hofert m_hofert at web.de
Wed May 19 17:02:53 CEST 2010


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"),...))



More information about the R-help mailing list