plot.lsp | R Documentation |
Plots the normalised power as a function of frequency (or period, depending on type in function lsp).
## S3 method for class 'lsp'
plot(x, main = "Lomb-Scargle Periodogram", xlabel = NULL,
ylabel = "normalized power", level = TRUE, plot=TRUE, ...)
x |
Object of class lsp as returned from function lsp. |
main |
Character. Main title of the periodogram plot. Defaults to “Lomb-Sargle Periodogram”. |
xlabel |
Character. X-axis label of the periodogram plot. |
ylabel |
Character. Y-axis label of the periodogram plot. |
level |
Logical. If TRUE, the significance level is displayed as a dashed line. |
plot |
If TRUE, the periodogram is plotted. |
... |
Additional graphics parameters |
Usually, this function is only called by function lsp. It maybe called by the user for some control of the output. For better control, plot results from lsp ($scanned, $power) as desired.
Invisibly returns the object of class lsp it is called with.
Thomas Ruf thomas.p.ruf@me.com
lsp
data(ibex)
ibex.spec <- lsp(ibex[,2:3],type='period', from=12,to=36,ofac=10, plot=FALSE)
plot.lsp(ibex.spec, main="Tb in Capra ibex",xlabel="Period (h)",ylabel="Power",level=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.