gg_tsresiduals | R Documentation |
Plots the residuals using a time series plot, ACF and histogram.
gg_tsresiduals(data, type = "innovation", ...)
data |
A mable containing one model with residuals. |
type |
The type of residuals to compute. If |
... |
Additional arguments passed to |
A list of ggplot objects showing a useful plots of a time series model's residuals.
Hyndman and Athanasopoulos (2019) Forecasting: principles and practice, 3rd edition, OTexts: Melbourne, Australia. https://OTexts.com/fpp3/
gg_tsdisplay()
if (requireNamespace("fable", quietly = TRUE)) {
library(fable)
tsibbledata::aus_production %>%
model(ETS(Beer)) %>%
gg_tsresiduals()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.