PlotSNR | R Documentation |
Plot proxy signal-to-noise ratios of several datasets as a function of timescale (e.g., as in the firn core analysis of Münch and Laepple, 2018, Fig. 3).
PlotSNR(
spec,
f.cut = FALSE,
names = NULL,
col = 1:length(spec),
xlim = c(500, 2),
ylim = c(0.05, 5),
xlab = "Time period (yr)",
ylab = "Signal-to-Noise Ratio",
xtm = NULL,
ytm = NULL,
xtl = NULL,
ytl = NULL
)
spec |
a (named) list of signal-to-noise ratio data sets: each dataset
itself should be list containing at least the spectral object
( |
f.cut |
Shall the spectra be cut at the cutoff frequency constrained
by the diffusion correction strength? Defaults to |
names |
an optional character vector of names of the proxy data
sets. If |
col |
a numeric or character vector of colors to use for the plotting
with length recycled to match |
xlim |
the x limits (x1, x2) of the plot. |
ylim |
the y limits (y1, y2) of the plot. |
xlab |
x axis label. |
ylab |
y axis label. |
xtm |
x axis tick mark positions; if |
ytm |
y axis tick mark positions; default setting ( |
xtl |
x axis tick mark labels; if |
ytl |
equivalent to |
Thomas Münch
Münch, T. and Laepple, T.: What climate signal is contained in decadal- to centennial-scale isotope variations from Antarctic ice cores? Clim. Past, 14, 2053–2070, https://doi.org/10.5194/cp-14-2053-2018, 2018.
spec.object
for the definition of a proxysnr
spectral object.
# create toy data
n <- 100
spec <- list(
data1 = list(snr = list(freq = seq(0.01, 0.5, length.out = n),
spec = seq(1, 0.1, length.out = n))),
data2 = list(snr = list(freq = seq(0.005, 0.5, length.out = n),
spec = seq(5, 0.1, length.out = n)))
)
# plot SNR data
PlotSNR(spec)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.