This function locates the peaks in a pregenerated periodogram.
Detection is based on pracma::findpeaks.
Only the significant (i.e.
power > signif_threshold) peaks are extracted.
behavr::behavr table representing a periodogram, as returned by periodogram
maximal numbers of peak to be detected
behavr::behavr table that is
data with an extra column
peak is filled with zeros except for rows match a peak.
In which case, rows have an integer value corresponding to the rank of the peak (e.g. 1 for the first peak).
zeitgebr tutorial – the relevant rehtomics tutorial
periodogram – to generate a periodogram in a first place
ggetho::geom_peak – a layer to show peaks on a periodogram
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.