gg_tsresiduals {feasts} | R Documentation |
Ensemble of time series residual diagnostic plots
Description
Plots the residuals using a time series plot, ACF and histogram.
Usage
gg_tsresiduals(data, type = "innovation", ...)
Arguments
data |
A mable containing one model with residuals. |
type |
The type of residuals to compute. If |
... |
Additional arguments passed to |
Value
A list of ggplot objects showing a useful plots of a time series model's residuals.
References
Hyndman and Athanasopoulos (2019) Forecasting: principles and practice, 3rd edition, OTexts: Melbourne, Australia. https://OTexts.com/fpp3/
See Also
Examples
if (requireNamespace("fable", quietly = TRUE)) {
library(fable)
tsibbledata::aus_production %>%
model(ETS(Beer)) %>%
gg_tsresiduals()
}
[Package feasts version 0.3.2 Index]