LLines: Add spectrum to existing log-log spectral plot

View source: R/paper-plotting-functions.R

LLinesR Documentation

Add spectrum to existing log-log spectral plot

Description

This function adds a spectrum to an existing double-logarithmic plot and optionally adds a transparent confidence interval.

Usage

LLines(
  x,
  conf = TRUE,
  bPeriod = FALSE,
  col = "black",
  alpha = 0.2,
  removeFirst = 0,
  removeLast = 0,
  ...
)

Arguments

x

an object of class "spec".

conf

if TRUE (the default) add a transparent confidence interval (suppressed if x contains no error limits).

bPeriod

if TRUE treat the x-axis values in units of period (inverse frequency). Defaults to FALSE.

col

color for the line plot and the confidence interval.

alpha

transparency level (between 0 and 1) for the confidence interval. Defaults to 0.2.

removeFirst

omit removeFirst values on the low frequency side.

removeLast

omit removeLast values on the high frequency side.

...

further graphical parameters passed to lines.

Author(s)

Thomas Laepple


EarthSystemDiagnostics/proxysnr documentation built on Sept. 15, 2024, 7:47 a.m.