plot.see_check_heteroscedasticity: Plot method for (non-)constant error variance checks

View source: R/plot.check_heteroscedasticity.R

plot.see_check_heteroscedasticityR Documentation

Plot method for (non-)constant error variance checks

Description

The plot() method for the performance::check_heteroscedasticity() function.

Usage

## S3 method for class 'see_check_heteroscedasticity'
plot(x, data = NULL, ...)

Arguments

x

An object.

data

The original data used to create this object. Can be a statistical model.

...

Arguments passed to or from other methods.

Value

A ggplot2-object.

See Also

See also the vignette about check_model().

Examples


m <- lm(mpg ~ wt + cyl + gear + disp, data = mtcars)
result <- check_heteroscedasticity(m)
result
plot(result, data = m) # data required for pkgdown


see documentation built on Nov. 3, 2023, 5:10 p.m.