[R] Arrays of Trellis plots

Deepayan Sarkar deepayan.sarkar at gmail.com
Mon Oct 27 19:23:18 CET 2008


On 10/27/08, erwann rogard <erwann.rogard at gmail.com> wrote:
> hello,
>
>  the example below does not work. (i know it's not supposed, but it makes it
>  clear what i'm trying to achieve)
>
>  par(mfrow=c(2,1))
>  xyplot(y~x2|x1,data=dataframe1,pch=20)
>  xyplot(y~x2|x1,data=dataframe2,pch=20)
>
>  i know i could probably merge the two datasets and do something like
>  xyplot(y~x2|x1+dataset,data=merged)
>
>  any other suggestion?

xyplot(y~x2|x1+which,data=make.groups(dataframe1, dataframe2))

-Deepayan



More information about the R-help mailing list