[R] Changing strip var.name value on lattice::xyplot

Deepayan Sarkar deepayan.sarkar at gmail.com
Mon Dec 5 19:05:37 CET 2005

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.

     strip=strip.custom(factor.levels = c("M","F")))


More information about the R-help mailing list