[R] Arrays of Trellis plots

Felix Andrews felix at nfrac.org
Thu Oct 30 06:41:23 CET 2008


2008/10/30 erwann rogard <erwann.rogard at gmail.com>:
> hi,
>
> xyplot(y~x2|x1+which,data=
>>
>> make.groups(dataframe1, dataframe2))
>>
>>
> i'd like to replace the labels for dataframe1 and dataframe2 say with
> c("A","B"). is there a way?

I guess you mean
make.groups(A = dataframe1, B = dataframe2)
see ?make.groups

>
> thanks!
>
> On Mon, Oct 27, 2008 at 2:23 PM, Deepayan Sarkar
> <deepayan.sarkar at gmail.com>wrote:
>
>> 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
>>
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.
>



-- 
Felix Andrews / 安福立
http://www.neurofractal.org/felix/
3358 543D AAC6 22C2 D336  80D9 360B 72DD 3E4C F5D8



More information about the R-help mailing list