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)
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,
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,