On 12/3/07, Monica Pisica <[EMAIL PROTECTED]> 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 ______________________________________________ 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.