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(fabletools)
tsibbledata::aus_production %>%
model(feasts::STL(Beer)) %>%
components() %>%
autoplot()