LPlot | R Documentation |
This function plots a spectrum on a double-logarithmic scale and optionally adds a transparent confidence interval.
LPlot(
x,
conf = TRUE,
bPeriod = FALSE,
bNoPlot = FALSE,
axes = TRUE,
col = "black",
alpha = 0.3,
removeFirst = 0,
removeLast = 0,
xlab = "f",
ylab = "PSD",
xlim = NULL,
ylim = NULL,
log = "xy",
...
)
x |
a spectral object resulting from a call to |
conf |
if |
bPeriod |
if |
bNoPlot |
if |
axes |
if |
col |
color for the line plot and the confidence interval. |
alpha |
transparency level (between 0 and 1) for the confidence
interval. Defaults to |
removeFirst |
omit |
removeLast |
omit |
xlab |
character string for labelling the x-axis. |
ylab |
character string for labelling the y-axis. |
xlim |
range of x-axis values; if |
ylim |
range of y-axis values; if |
log |
a character string which contains |
... |
further graphical parameters passed to |
Thomas Laepple
Other functions to plot power spectra:
LLines()
,
gg_spec()
x <- ts(arima.sim(list(ar = 0.9), 1000))
spec <- SpecMTM(x)
LPlot(spec, col = "grey")
LLines(LogSmooth(spec), lwd = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.