plot.lsp: Plot Lomb-Scargle Periodogram

View source: R/plot.lsp.R

plot.lspR Documentation

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 class 'lsp'
plot(x, main = "Lomb-Scargle Periodogram", xlabel = NULL,
    ylabel = "normalized power", level = TRUE, plot=TRUE, ...)

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

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.

Value

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

Author(s)

Thomas Ruf thomas.p.ruf@me.com

See Also

lsp

Examples

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)


lomb documentation built on May 29, 2024, 3:37 a.m.