[R] xyplot for longitudinal data

2007-07-17 Thread Osman Al-Radi
Dear R-help subscribers, I use xyplot to plot longitudinal data as follows: score-runif(100,-4,5) group-sample(1:4,100,rep=T) subject-rep(1:25,4) age-rep(runif(4,1,40),25) df-data.frame(score,group,age,subject) xyplot(score~age|group, group=subject, panel=function(...){ panel.loess(...,lwd=4)

Re: [R] xyplot for longitudinal data

2007-07-17 Thread Deepayan Sarkar
On 7/17/07, Osman Al-Radi [EMAIL PROTECTED] wrote: Dear R-help subscribers, I use xyplot to plot longitudinal data as follows: score-runif(100,-4,5) group-sample(1:4,100,rep=T) subject-rep(1:25,4) age-rep(runif(4,1,40),25) df-data.frame(score,group,age,subject) xyplot(score~age|group,

Re: [R] xyplot for longitudinal data

2007-07-17 Thread hadley wickham
On 7/18/07, Osman Al-Radi [EMAIL PROTECTED] wrote: Dear R-help subscribers, I use xyplot to plot longitudinal data as follows: score-runif(100,-4,5) group-sample(1:4,100,rep=T) subject-rep(1:25,4) age-rep(runif(4,1,40),25) df-data.frame(score,group,age,subject) xyplot(score~age|group,