| autoplot.macrofilter | R Documentation |
Visualises any macrofilter object: the observed series (attenuated) over
the estimated trend (emphasised). When the object carries bootstrap bands
($trend_lower / $trend_upper), a 95% confidence ribbon is drawn behind
the lines automatically.
## S3 method for class 'macrofilter'
autoplot(object, ...)
object |
A |
... |
Currently ignored; present for S3 generic compatibility. |
A ggplot object.
y <- ts(cumsum(rnorm(120)), start = c(2000, 1), frequency = 4)
autoplot(mbh_filter(y, mstop = 100L, boot_iter = 50L))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.