plot.see_check_collinearity: Plot method for multicollinearity checks

View source: R/plot.check_collinearity.R

plot.see_check_collinearityR Documentation

Plot method for multicollinearity checks

Description

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

Usage

## S3 method for class 'see_check_collinearity'
plot(
  x,
  data = NULL,
  colors = c("#3aaf85", "#1b6ca8", "#cd201f"),
  size_point = 3.5,
  size_line = 0.8,
  size_title = 12,
  size_axis_title = base_size,
  base_size = 10,
  ...
)

Arguments

x

An object.

data

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

colors

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

size_point

Numeric specifying size of point-geoms.

size_line

Numeric value specifying size of line geoms.

base_size, size_axis_title, size_title

Numeric value specifying size of axis and plot titles.

...

Arguments passed to or from other methods.

Value

A ggplot2-object.

Examples

library(performance)
m <- lm(mpg ~ wt + cyl + gear + disp, data = mtcars)
result <- check_collinearity(m)
result
plot(result)


see documentation built on Sept. 11, 2024, 5:51 p.m.