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 wrote:
> On Wed, 18 Aug 2010 13:56:23 -0700 (PDT),
> Phil Spector wrote:
>
>> Sebastian - panel.loess will be more suitable for use with xy
Hi:
This also works:
xyplot(incidence ~ year, melanoma, type = c('p', 'smooth'))
See p. 75 of the Lattice book for the allowable types.
HTH,
Dennis
On Wed, Aug 18, 2010 at 1:34 PM, Sebastian P. Luque wrote:
> Hi,
>
> The following call:
>
> xyplot(incidence ~ year, melanoma, panel=panel.smoot
On Wed, 18 Aug 2010 13:56:23 -0700 (PDT),
Phil Spector 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,...)})
T
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,...)})
Hi,
The following call:
xyplot(incidence ~ year, melanoma, panel=panel.smooth)
produces a blank plot region with an error message:
Error using packet 1
plot.new has not been called yet
> sessionInfo()
R version 2.11.1 (2010-05-31)
x86_64-pc-linux-gnu
locale:
[1] LC_CTYPE=en_CA.UTF-8
5 matches
Mail list logo