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 > <m.van_iterson...@lumc.nl> wrote: > > Thanks Chris Campbell, > > > > I didn't though about that. > > > > Cheers, > > Maarten > > > > On Mon, 2010-12-06 at 10:08 +0000, Chris Campbell wrote: > >> data$subjectID <- paste(data$groups, data$subjects) # create a > >> character > >> label > >> > >> xyplot(responses~time|subjectID, groups = groups, data = data, > >> aspect="xy") > > > Another option is > > xyplot(responses~time | groups:subjects, data = data, aspect="xy") > > -Deepayan -- Maarten van Iterson Center for Human and Clinical Genetics Leiden University Medical Center (LUMC) Research Building, Einthovenweg 20 Room S-04-038 Phone: 071-526 9439 E-mail: m.van_iterson...@lumc.nl --------------- Postal address: Postzone S-04-P Postbus 9600 2300 RC Leiden The Netherlands ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.