R/plot.check_heteroscedasticity.R
plot.see_check_heteroscedasticity.RdThe plot() method for the
performance::check_heteroscedasticity() function.
# S3 method for class 'see_check_heteroscedasticity'
plot(
x,
data = NULL,
size_point = 2,
linewidth = 0.8,
size_title = 12,
size_axis_title = base_size,
base_size = 10,
...
)An object.
The original data used to create this object. Can be a statistical model.
Numeric specifying size of point-geoms.
Numeric value specifying size of line geoms.
Numeric value specifying size of axis and plot titles.
Arguments passed to or from other methods.
A ggplot2-object.
See also the vignette about check_model().
m <- lm(mpg ~ wt + cyl + gear + disp, data = mtcars)
result <- performance::check_heteroscedasticity(m)
result
#> Warning: Heteroscedasticity (non-constant error variance) detected (p = 0.042).
plot(result, data = m) # data required for pkgdown