Description Usage Arguments Details Value Author(s) Examples
Locate the peaks in a numeric vector.
1 |
x |
A vector whose peaks are to be located. |
show |
If TRUE, the vector is plotted and peaks are indicated with red triangles. |
This function looks for peaks by finding elements whose value is greater than both the elements that surround it. If no peaks are found, a value of zero is returned.
A vector indicating the location (position in the vector) of peaks in the vector.
Santiago Barreda <sbarreda@ucdavis.edu>
1 2 3 4 |
Warning messages:
1: In plot.window(...) : "output" is not a graphical parameter
2: In plot.xy(xy, type, ...) : "output" is not a graphical parameter
3: In axis(side = side, at = at, labels = labels, ...) :
"output" is not a graphical parameter
4: In axis(side = side, at = at, labels = labels, ...) :
"output" is not a graphical parameter
5: In box(...) : "output" is not a graphical parameter
6: In title(...) : "output" is not a graphical parameter
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.