Learn R Programming

lomb (version 2.5.0)

plot.lsp: Plot Lomb-Scargle Periodogram

Description

Plots the normalised power as a function of frequency (or period, depending on type in function lsp).

Usage

# S3 method for lsp
plot(x, main = "Lomb-Scargle Periodogram", xlabel = NULL,
    ylabel = "normalized power", level = TRUE, plot=TRUE, ...)

Value

Invisibly returns the object of class lsp it is called with.

Arguments

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

Author

Thomas Ruf thomas.p.ruf@me.com

Details

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.

See Also

lsp

Examples

Run this code
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