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