Skip to content

Changing strip var.name value on lattice::xyplot

2 messages · Ernesto Jardim, Deepayan Sarkar

#
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")))
#
On 12/5/05, ernesto <ernesto at ipimar.pt> wrote:
'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