find.contours | R Documentation |
Find values at which given KDE takes specified values
find.contours(kde, levels = c(0.6826895, 0.9544997, 0.9973002))
kde |
a list containing 'x'- and 'y'- arrays, and a 'z'-matrix, as from MASS::kde2d (see below) |
levels |
the required probability content of the contours (see below) |
the values of 'z' that define the minimum-area regions with the specified probability contents Given a list 'kde' containing 'x' and 'y' (the x- and y-coordinates of grid points) and 'z' (values proportional to a probability density at those grid points), we calculate the minimum-area contours which contain the probability contents specified in 'levels'. All the values in 'levels' must be between 0 and 1.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.