plot_peak_2d | R Documentation |
Plot of the 2D data points with peaks highlighted in green
plot_peak_2d(dat, peaks, x.range = NA, y.range = NA)
dat |
Data points used for kernel density estimation. |
peaks |
A matrix of detected peaks with x- and y-coordinates. |
x.range |
(optional) A numeric 2D vector specifying the x-axis range for filtering. |
y.range |
(optional) A numeric 2D vector specifying the y-axis range for filtering. |
A scatter plot of the data points with the detected peaks highlighted in green.
data(r)
k <- kdeC(r$dat, H = c(0.014, 0.014), gridsize = c(330, 330), cutNum = c(1, 1), w = r$z)
m <- findPeak(k, filter = 0, select = 100)
plot_peak_2d(r$dat, m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.