Re: [R] lattice: strip panel function question

2011-01-05 Thread Maarten van Iterson
Thanks, Deepayan, that solution is even more elegant! Maarten On Wed, 2011-01-05 at 14:24 +0530, Deepayan Sarkar wrote: > On Mon, Dec 6, 2010 at 6:22 PM, Maarten van Iterson > wrote: > > Thanks Chris Campbell, > > > > I didn't though about that. > > > > Cheers, > > Maarten > > > > On Mon, 2010

Re: [R] lattice: strip panel function question

2011-01-05 Thread Deepayan Sarkar
On Mon, Dec 6, 2010 at 6:22 PM, Maarten van Iterson wrote: > Thanks Chris Campbell, > > I didn't though about that. > > Cheers, > Maarten > > On Mon, 2010-12-06 at 10:08 +, Chris Campbell wrote: >> data$subjectID <- paste(data$groups, data$subjects) # create a >> character >> label >> >> xyplo

Re: [R] lattice: strip panel function question

2010-12-06 Thread Maarten van Iterson
Thanks Chris Campbell, I didn't though about that. Cheers, Maarten On Mon, 2010-12-06 at 10:08 +, Chris Campbell wrote: > data$subjectID <- paste(data$groups, data$subjects) # create a > character > label > > xyplot(responses~time|subjectID, groups = groups, data = data, > aspect="xy")

Re: [R] lattice: strip panel function question

2010-12-06 Thread Chris Campbell
f Maarten van Iterson Sent: 06 December 2010 08:32 To: r-help@r-project.org Subject: [R] lattice: strip panel function question Dear list, If have some repeated measurement data which looks something like: time <- rep(1:5 , each=2*4) groups <- rep(c("Case", "Control")

[R] lattice: strip panel function question

2010-12-06 Thread Maarten van Iterson
Dear list, If have some repeated measurement data which looks something like: time <- rep(1:5 , each=2*4) groups <- rep(c("Case", "Control"), each=4) subjects <- factor(rep(1:(2*4), 5)) responses <- time + rnorm(5*2*4) + as.integer(factor(groups)) data <- data.frame(responses, time, groups, sub