On Wed, 18 Aug 2010 13:56:23 -0700 (PDT), Phil Spector <spec...@stat.berkeley.edu> wrote:
> Sebastian - panel.loess will be more suitable for use with xyplot. To > get both points and the smoothed line, you can use > xyplot(incidence~year,melanoma,panel=function(x,y,...){ > panel.xyplot(x,y,...) panel.loess(x,y,...)}) Thanks Phil, this is a good alternative. I wonder though why panel.smooth wouldn't work too. -- Seb ______________________________________________ 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.