Re: [R] Conditional contour plots for estimated density functions using Lattice

From: Richard M. Heiberger <rmh_at_temple.edu>
Date: Sat 13 May 2006 - 00:46:17 EST


Continuing with your example.

Is this what you have in mind?

Rich

panel.estcontplot <- function(x, y, ..., col.points="black") {   cest.gr=kde2d(x, y)
  cest.gr.lat=con2tr(cest.gr)
  panel.contourplot(cest.gr.lat$x, cest.gr.lat$y, cest.gr.lat$z,

                    subscripts=seq(nrow(cest.gr.lat)), ...)
  panel.xyplot(x, y, ..., col=col.points) }

xyplot(y ~ x | grp, panel=panel.estcontplot)



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat May 13 00:50:37 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Mon 15 May 2006 - 20:10:06 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.