View source: R/plot_dimred_encircle.R
dimred_encircle | R Documentation |
Calculate kernel density estimates and extract contour lines at a given level to make flexible encircling of points.
dimred_encircle(
x,
y,
...,
contour_level = "3%",
contour_factor = 1,
bandwidth = c(10, 10)
)
... |
Passed on toe ks:kde |
contour_level |
Character string for which contour level to use (Default: "3%") |
contour_factor |
contour_levels only available for whole percentages. If an intermediate level or a level below "1%" is needed, the contour level value is divided by this factor. |
bandwidth |
Bandwidth passeds on the ks::kde |
data |
matrix or data frame with x and y values as the first two columns |
Modified from: https://stackoverflow.com/questions/23437000/how-to-plot-a-contour-line-showing-where-95-of-values-fall-within-in-r-and-in
data.frame of contour points
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.