The first step is to make Weather a factor.  Then the levels would be displayed
in the strip labels.

The second step would be to change the level values to the actual strings
you want to see.

> tmp <- data.frame(Weather=1:3, x=rnorm(3), y=rnorm(3))
> xyplot(y ~ x | Weather, data=tmp)
> tmp$Weather <- factor(tmp$Weather)
> xyplot(y ~ x | Weather, data=tmp)
> levels(tmp$Weather) <- c("long string", "longer string", "short")
> xyplot(y ~ x | Weather, data=tmp)
> xyplot(y ~ x | Weather, data=tmp, layout=c(3,1))

______________________________________________
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.

Reply via email to