Description Usage Arguments Details Author(s) Examples
View source: R/plot_spectrum.R
Plot the periodogram of a daily time series
1 2 3 4 5 6 7 | plot_spectrum(
x,
xlog = FALSE,
size = 1,
color = "black",
vline_color = "#6F87B2"
)
|
x |
xts or ts, daily timeseries |
xlog |
should x-axis be log transformed |
size |
linesize |
color |
color of line |
vline_color |
color of vertical lines |
Plot uses ggplot2 and can be changed accordingly. The spectrum is build around the spec.pgram() function
Daniel Ollech
1 2 | x <- daily_sim(3)$original
plot_spectrum(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.