powered by
Plots the residuals using a time series plot, ACF and histogram.
gg_tsresiduals(data, type = "innovation", ...)
A list of ggplot objects showing a useful plots of a time series model's residuals.
A mable containing one model with residuals.
The type of residuals to compute. If type="response", residuals on the back-transformed data will be computed.
type="response"
Additional arguments passed to gg_tsdisplay().
gg_tsdisplay()
Hyndman and Athanasopoulos (2019) Forecasting: principles and practice, 3rd edition, OTexts: Melbourne, Australia. https://OTexts.com/fpp3/
if (requireNamespace("fable", quietly = TRUE)) { library(fable) tsibbledata::aus_production %>% model(ETS(Beer)) %>% gg_tsresiduals() }
Run the code above in your browser using DataLab