> SNP$density <- get_density(SNP$mean, SNP$var) > > summary(SNP$density) > Min. 1st Qu. Median Mean 3rd Qu. Max. > 0 383 696 738 1170 1789
This doesn't look accurate. The density values shouldn't all be integers. And I wouldn't expect the smallest density to be zero, if using a Gaussian kernel. Are these values rounded or formatted? (Recombined Excerpts) > and keep only entries with density > 400 > a=SNP[SNP$density>400,] > Any idea how do I interpret data points that are left contained within the ellipses? Reiterating, they're contour lines, but they should *not* be ellipses. You could work out the proportion of "densities" > 400. d <- SNP$density p.remain <- length (d [d > 400]) / length (d) p.remain Or a more succinct version: p.remain <- sum (SNP$density > 400) / nrow (SNP) Then you can say that you've plotted data with the highest <p.remain> densities. ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.