[R] 'panel.smooth' error

Bert Gunter gunter.berton at gene.com
Thu Aug 19 06:57:23 CEST 2010


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 <spluque at gmail.com> wrote:
> On Wed, 18 Aug 2010 13:56:23 -0700 (PDT),
> Phil Spector <spector at 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 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.
>



-- 
Bert Gunter
Genentech Nonclinical Biostatistics
467-7374
http://devo.gene.com/groups/devo/depts/ncb/home.shtml



More information about the R-help mailing list