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 <splu...@gmail.com>wrote:

> 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       LC_NUMERIC=C
> LC_TIME=en_CA.UTF-8        LC_COLLATE=en_CA.UTF-8     LC_MONETARY=C
>      LC_MESSAGES=en_CA.UTF-8
>  [7] LC_PAPER=en_CA.UTF-8       LC_NAME=C                  LC_ADDRESS=C
>           LC_TELEPHONE=C             LC_MEASUREMENT=en_CA.UTF-8
> LC_IDENTIFICATION=C
>
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base
>
> other attached packages:
> [1] lattice_0.18-8
>
> loaded via a namespace (and not attached):
> [1] grid_2.11.1
>
>
> Is this a known problem with the above environment?
>
> Cheers,
>
> --
> 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.
>

        [[alternative HTML version deleted]]

______________________________________________
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.

Reply via email to