getpeaks | R Documentation |
Retrieves and displays the npeaks largest peaks in the periodogram-
getpeaks(object,npeaks,plotit)
object |
object must be of class "lsp" |
npeaks |
number of peaks to get |
plotit |
if TRUE show plot |
Returns a list with
data |
A dataframe with times an heights of peaks |
plot |
An annotated periodogram |
Thomas Ruf thomas.ruf@vetmeduni.ac.at
show
per=lsp(lynx,ofac=5) getpeaks(per,6) # obtain the 6 largest peaks
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.