plot.lomb {spectral}R Documentation

plot method for Lomb-Scargle periodograms

Description

This method plots a standard Lomb-Scargle periodogram, which contains the normalized power spectra PSD and the corresponding false alarm probability p. For more details refer to Zechmeister et al. (2009).

Usage

## S3 method for class 'lomb'
plot(
  x,
  FAPcol = 1,
  FAPlwd = 1,
  FAPlty = "dashed",
  FAPlim = c(1, 0.001),
  FAPlab = "FAP",
  legend.pos = "topleft",
  legend.cex = 1,
  legend.on = T,
  legend.text = c("Spectrum", "False Alarm Probability"),
  legend.lwd = NULL,
  legend.lty = NULL,
  legend.col = NULL,
  xlab = "Frequency",
  ylab = "Normalized PSD",
  main = "",
  ...
)

Arguments

x

object of class lomb

FAPcol

color of the FAP line

FAPlwd

line width of the FAP line

FAPlty

line type for the FAP graph

FAPlim

limits to the FAP

FAPlab

label of the right vertical axis

legend.pos

position of the legend

legend.cex

cex value for the legend

legend.on

logical, wheater to draw a legend or not

legend.text

legend text

legend.lwd

line width

legend.lty

line type

legend.col

color vector of the legend elements

xlab

a label for the x axis, defaults to a description of x.

ylab

a label for the y axis, defaults to a description of y.

main

setting the title of the plot

...

further parameters to the plot function

Details

The plot.lomb function is a wrapper function for R's standard scatter plot To switch off certain properties, simply overwrite the parameter. For example log = "" will reset the plot axis back to non-log scale.

References

M. Zechmeister and M. Kurster, "The generalised Lomb-Scargle periodogram. A new formalism for the floating-mean and Keplerian periodograms", Astronomy & Astrophysics, 496(2), pp. 577–584, 2009.

See Also

spec.lomb

Examples

# See spec.lomb


[Package spectral version 2.0 Index]