Re: [R] Arrays of Trellis plots

2008-10-29 Thread Felix Andrews
2008/10/30 erwann rogard <[EMAIL PROTECTED]>: > 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

Re: [R] Arrays of Trellis plots

2008-10-29 Thread erwann rogard
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? thanks! On Mon, Oct 27, 2008 at 2:23 PM, Deepayan Sarkar <[EMAIL PROTECTED]>wrote: > On 10/27/08, erwann rogard <[EMAIL P

Re: [R] Arrays of Trellis plots

2008-10-27 Thread Richard . Cotton
> 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 > xyp

Re: [R] Arrays of Trellis plots

2008-10-27 Thread erwann rogard
Thank you all, I've got everything I need now. On Mon, Oct 27, 2008 at 2:29 PM, <[EMAIL PROTECTED]> wrote: > > 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) >

Re: [R] Arrays of Trellis plots

2008-10-27 Thread baptiste auguie
Hi, You could use the grid package to place treillis objects in any custom layout you want, for example (inspired by Paul Murrell's R graphics book < http://www.stat.auckland.ac.nz/~paul/RGraphics/rgraphics.html > fig 5.22), library(grid) library(lattice) df <- data.frame(x=rnorm(100),

Re: [R] Arrays of Trellis plots

2008-10-27 Thread Deepayan Sarkar
On 10/27/08, erwann rogard <[EMAIL PROTECTED]> 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

[R] Arrays of Trellis plots

2008-10-27 Thread erwann rogard
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