| plot_spec | R Documentation |
Computes and plots autoregressive (AR) spectral density estimates for the
detrended original series and its seasonally adjusted counterpart. Spectra are
estimated using spec.ar with AR order set to 60. The plot
highlights frequencies corresponding to intramonthly and intrayearly cycles.
plot_spec(x)
x |
A |
A ggplot2 object showing the AR spectral density estimates for
the detrended original and seasonally adjusted series.
# Not run
# Seasonal adjustment of weekly US gasoline production
res <- boiwsa(x=gasoline.data$y,dates=gasoline.data$date)
plot_spec(res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.