gf_acf: plot ACF for model residuals (or any vector of observations)...

View source: R/gf_acf.R

gf_acfR Documentation

plot ACF for model residuals (or any vector of observations) using ggformula.

Description

plot ACF for model residuals (or any vector of observations) using ggformula.

Usage

gf_acf(formula, partial = FALSE)

Arguments

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?

Value

A ggplot2 plot. For additional customization, pipe to, for example, gf_refine(), gf_labs(), gf_lims, gf_theme().


stacyderuiter/s245 documentation built on July 31, 2023, 11:04 p.m.