View source: R/plot.check_heteroscedasticity.R
plot.see_check_heteroscedasticity | R Documentation |
The plot()
method for the
performance::check_heteroscedasticity()
function.
## S3 method for class 'see_check_heteroscedasticity'
plot(x, data = NULL, ...)
x |
An object. |
data |
The original data used to create this object. Can be a statistical model. |
... |
Arguments passed to or from other methods. |
A ggplot2-object.
library(performance)
m <- lm(mpg ~ wt + cyl + gear + disp, data = mtcars)
result <- check_heteroscedasticity(m)
result
plot(result, data = m) # data required for pkgdown
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.