Hi James, You can try the hexbin package at www.bioconductor.org. Do the following
bin<-hexbin(x,y) ## This will give you hexagonal bins of the data binsm<-smooth.hexbin(bin) plot(binsm) This is an approximation to what you want. The other way is to use a 2d bspline on the bin center of masses of the hexagons and use the bin counts as weights. Nicholas ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html