powered by
The plot() method for the performance::check_collinearity() function.
plot()
performance::check_collinearity()
# S3 method for see_check_collinearity plot( x, data = NULL, colors = c("#3aaf85", "#1b6ca8", "#cd201f"), size_point = 3.5, linewidth = 0.8, size_title = 12, size_axis_title = base_size, base_size = 10, ... )
A ggplot2-object.
An object.
The original data used to create this object. Can be a statistical model.
Character vector of length two, indicating the colors (in hex-format) for points and line.
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.
library(performance) m <- lm(mpg ~ wt + cyl + gear + disp, data = mtcars) result <- check_collinearity(m) result plot(result)
Run the code above in your browser using DataLab