[R] coplot and xyplot and panel functions
Deepayan Sarkar
deepayan.sarkar at gmail.com
Mon Dec 3 21:20:45 CET 2007
On 12/3/07, Monica Pisica <pisicandru at hotmail.com> wrote:
>
> Hi,
>
> I wrote a panel function called panelwhite.corplot. If i use this function in a coplot is working fine, but if i use same function with xyplot i get the error: Error using packet 1: plot.new has not been called yet ..... and so on filling all my plots.
>
> So with:
>
> coplot(be~ch|dbh1, envmetr1, panel=panelwhite.corplot)
>
> I get the expected result
>
> with:
>
> xyplot(be~ch | dbh1, data=envmetr1, panel = panelwhite.corplot)
>
> i get the error.
>
> Can you point me to the error i am making here?
Lattice panel functions need to use grid graphics primitives.
Traditional graphics functions, like your panelwhite.corplot, do not
qualify, and will not (easily) work with lattice.
You might find the ?panel.points manual page helpful.
-Deepayan
More information about the R-help
mailing list