Hi, I want to use a different text for the strips of my xyplot but I'm failing to do it. Can someone check on the following and comment ? Thanks EJ xyplot(rnorm(100)~1:100|factor(rep(c(1,2),50)), strip=strip.custom(var.name=c("M","F")))
Deepayan Sarkar
2005-Dec-05 18:05 UTC
[R] Changing strip var.name value on lattice::xyplot
On 12/5/05, ernesto <ernesto at ipimar.pt> wrote:> Hi, > > I want to use a different text for the strips of my xyplot but I'm > failing to do it. Can someone check on the following and comment ? > > Thanks > > EJ > > xyplot(rnorm(100)~1:100|factor(rep(c(1,2),50)), > strip=strip.custom(var.name=c("M","F")))'var.name' is for the name of the conditioning variable(s). For levels of a factor, use 'factor.levels', e.g. xyplot(rnorm(100)~1:100|factor(rep(c(1,2),50)), strip=strip.custom(factor.levels = c("M","F"))) -Deepayan