On Jun 19, 2012, at 10:02 AM, David L Carlson wrote:

kde2d is for two dimensional data. The persp graph is 3d.

Huh? The question asked about plotting data that was 2d. The third  
dimension was to be the density. kde2d in package MASS or the  
similarly named function in package KernSmooth would seem to be on  
point here.

No, I don't think that I can use kde2d because the I already have my z data and 
it is this z data that I need to smooth. My question is analog to smoothing 
level curves on a map, the altitude is given by data, and one wants to have 
nice level curves that ignore small variations of the terrain.

Guillaume



        [[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