[R] strip names lattice graphics

Deepayan Sarkar deepayan.sarkar at gmail.com
Thu Jul 31 23:05:42 CEST 2008

On Thu, Jul 31, 2008 at 1:30 PM, GOUACHE David
<D.GOUACHE at arvalisinstitutduvegetal.fr> 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.



More information about the R-help mailing list