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

From: Deepayan Sarkar <deepayan.sarkar_at_gmail.com>
Date: Tue 06 Dec 2005 - 05:05:37 EST

On 12/5/05, ernesto <ernesto@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



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Dec 06 05:15:24 2005

This archive was generated by hypermail 2.1.8 : Tue 06 Dec 2005 - 09:31:26 EST