panel.smooth is a base graphics, not a lattice, function. They are incompatible.
?panel.smooth -- Bert On Wed, Aug 18, 2010 at 2:05 PM, Sebastian P. Luque <splu...@gmail.com> wrote: > 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. > -- Bert Gunter Genentech Nonclinical Biostatistics 467-7374 http://devo.gene.com/groups/devo/depts/ncb/home.shtml ______________________________________________ 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.