[R] lattice: strip panel function question

Deepayan Sarkar deepayan.sarkar at gmail.com
Wed Jan 5 09:54:45 CET 2011


On Mon, Dec 6, 2010 at 6:22 PM, Maarten van Iterson
<M.van_iterson.HG at 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



More information about the R-help mailing list