Learn R Programming

see (version 0.6.4)

plot.see_check_collinearity: Plot method for multicollinearity checks

Description

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

Usage

# S3 method for see_check_collinearity
plot(x, data = NULL, colors = c("#3aaf85", "#1b6ca8", "#cd201f"), ...)

Arguments

x

An object.

data

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

colors

Character vector of length two, indicating the colors (in hex-format) for points and line.

...

Arguments passed to or from other methods.

Value

A ggplot2-object.

Examples

Run this code
# NOT RUN {
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