LPlot: Log-log spectral plot

Description Usage Arguments Author(s)

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

Description

This function plots a spectrum on a double-logarithmic scale and optionally adds a transparent confidence interval.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
LPlot(
  x,
  conf = TRUE,
  bPeriod = FALSE,
  bNoPlot = FALSE,
  axes = TRUE,
  col = "black",
  alpha = 0.2,
  removeFirst = 0,
  removeLast = 0,
  xlab = "f",
  ylab = "PSD",
  xlim = NULL,
  ylim = NULL,
  ...
)

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 the x-axis is displayed in units of period (inverse frequency), increasing to the left. Defaults to FALSE.

bNoPlot

if TRUE only produce the plot frame (type = "n" behaviour of function plot). Defaults to FALSE.

axes

if FALSE the plotting of the x and y axes is suppressed. Defaults to TRUE.

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.

xlab

character string for labelling the x-axis.

ylab

character string for labelling the y-axis.

xlim

range of x-axis values; if NULL (the default) it is calculated internally and automatically reversed for bPeriod = TRUE.

ylim

range of y-axis values; if NULL (the default) it is calculated internally.

...

further graphical parameters passed to plot.

Author(s)

Thomas Laepple


EarthSystemDiagnostics/proxysnr documentation built on Oct. 2, 2021, 3:03 p.m.