gf_acf | R Documentation |
plot ACF for model residuals (or any vector of observations) using ggformula.
gf_acf(formula, partial = FALSE)
formula |
a formula of the form ~ x, where x is usually a fitted regression model object. Supported types include those created by lm(), or glm(), geeglm(), glmmTMB(), model.avg(), gam(), and others that have a resid() method. If there is not, x will be treated as a vector of observations for which to compute the ACF. |
partial |
logical. compute PACF instead of acf? |
A ggplot2 plot. For additional customization, pipe to, for example, gf_refine(), gf_labs(), gf_lims, gf_theme().
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.