[R] question in xyplot of lattice

From: Aimin Yan <aiminy_at_iastate.edu>
Date: Fri, 07 Dec 2007 13:08:40 -0600


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_at_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. Received on Fri 07 Dec 2007 - 19:12:48 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 07 Dec 2007 - 21:30:17 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.