我们如何估计对应于轮廓内点百分比的水平轮廓?
这篇文章描述了如何在 R 中向散点图添加等高线:
https ://stats.stackexchange.com/questions/31726/scatterplot-with-contour-heat-overlay
例如:
x <- rnorm(1000, 0, 1.3)
y <- rnorm(1000, 0, 1);
dens <- kde2d(x, y, n=200); ## estimate the z counts
plot(x, y);
contour(dens, nlevels = 5, add=T)
因此,不是上面示例中绘制的 5 个级别,我希望对应于 99%、95%、50% 等点的级别位于等高线内。
谢谢...