Re: [R] learning about panel functions in lattice

2009-06-14 Thread Gabor Grothendieck
2009/6/14 Juliet Hannah : > Hi All, > > I am trying to understand panel functions. Let's use this example. > > > library(lattice) > time<-c(rep(1:10,5)) > y <-time+rnorm(50,5,2) > group<-c(rep('A',30),rep('B',20)) > subject<-c(rep('a',10),rep('b',10),rep('c',10),rep('d',10),rep('e',10)) > myData <-

[R] learning about panel functions in lattice

2009-06-14 Thread Juliet Hannah
Hi All, I am trying to understand panel functions. Let's use this example. library(lattice) time<-c(rep(1:10,5)) y <-time+rnorm(50,5,2) group<-c(rep('A',30),rep('B',20)) subject<-c(rep('a',10),rep('b',10),rep('c',10),rep('d',10),rep('e',10)) myData <-data.frame(subject,group,time,y) head(myData)