[R] xyplot

From: Osman Al-Radi <osman.al.radi_at_gmail.com>
Date: Thu 05 Oct 2006 - 20:43:37 GMT


for the data below:
subject<-c(rep('a',10),rep('b',10),rep('c',10),rep('d',10),rep('e',10)) group<-c(rep('A',30),rep('B',20))

I'd like to produce a plot with a single pannel with two loess curves one for each group. the code below does that but on two different pannels, I'd like to have both curves on the same pannel with different colors.

xyplot(y~time|group, groups=subject,



Osman O. Al-Radi, MD, MSc, FRCSC
Fellow, Cardiovascular Surgery
The Hospital for Sick Children
University of Toronto, Canada

	[[alternative HTML version deleted]]

R-help@stat.math.ethz.ch mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Fri Oct 06 06:57:32 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 05 Oct 2006 - 22:30:08 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.