autoplot.dcmp_ts.Rd
Produces a faceted plot of the components used to build the response variable of the dable. Useful for visualising how the components contribute in a decomposition or model.
A dable.
The column of the dable used to plot. By default, this will be the response variable of the decomposition.
If TRUE
, each facet will include a scale bar which represents the same units across each facet.
If the decomposition contains distributions, which levels should be used to display intervals?
Further arguments passed to ggplot2::geom_line()
, which can be used to specify fixed aesthetics such as colour = "red"
or size = 3
.
A ggplot object showing a set of time plots of the decomposition.
library(feasts)
#> Loading required package: fabletools
#>
#> Attaching package: ‘feasts’
#> The following objects are masked from ‘package:ggtime’:
#>
#> gg_arma, gg_irf, gg_lag, gg_season, gg_subseries, gg_tsdisplay,
#> gg_tsresiduals
tsibbledata::aus_production %>%
model(STL(Beer)) %>%
components() %>%
autoplot()