On Thu, Jul 31, 2008 at 1:30 PM, GOUACHE David
<[EMAIL PROTECTED]> wrote:
> R-helpers,
>
> I'm having difficulty with customizing strip names for a lattice graphic.
>
> Here is an example using the iris data set :
>
> xyplot(Sepal.Length+Sepal.Width~Petal.Length,groups=Species,data=iris)
>
> ## I'd like to change the 2 strip names to "Length" and "Width" for example, 
> this is what I've tried :
>
> xyplot(Sepal.Length+Sepal.Width~Petal.Length,groups=Species,data=iris,strip=strip.custom(strip.names=c(T,F),strip.levels=c(F,T),var.name=c("Length","Width")))
>
> but I get "Length" in both strips, which is obviously not my goal...
> Any pointers would be much appreciated as to how to achieve the desired 
> result.

xyplot(Sepal.Length+Sepal.Width~Petal.Length,groups=Species,data=iris,
       strip=strip.custom(factor.levels=c("Length","Width")))

-Deepayan

______________________________________________
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