plot_peak_2d {WPKDE} | R Documentation |
Plot of the 2D data points with peaks highlighted in green
Description
Plot of the 2D data points with peaks highlighted in green
Usage
plot_peak_2d(dat, peaks, x.range = NA, y.range = NA)
Arguments
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. |
Value
A scatter plot of the data points with the detected peaks highlighted in green.
Examples
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)
[Package WPKDE version 1.0 Index]