I try to make a xyplot like the following:

xyplot(y1+y2~id|groups, ...)

I also want to calculate cor(y1,y2) in each group, print it on each panel.

Does anyone know how to write panel function for this?

Thanks,

Aimin

______________________________________________
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.

Reply via email to