powered by
Plots the normalised power as a function of frequency (or period, depending on type in function lsp).
# S3 method for lsp plot(x, main = "Lomb-Scargle Periodogram", xlabel = NULL, ylabel = "normalized power", level = TRUE, plot=TRUE, ...)
Invisibly returns the object of class lsp it is called with.
Object of class lsp as returned from function lsp.
Character. Main title of the periodogram plot. Defaults to “Lomb-Sargle Periodogram”.
Character. X-axis label of the periodogram plot.
Character. Y-axis label of the periodogram plot.
Logical. If TRUE, the significance level is displayed as a dashed line.
If TRUE, the periodogram is plotted.
Additional graphics parameters
Thomas Ruf thomas.p.ruf@me.com
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.
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)
Run the code above in your browser using DataLab