plot.mcvis: Multi-collinearity Visualization plots

View source: R/plot.mcvis.R

alt_mcvisR Documentation

Multi-collinearity Visualization plots

Description

Multi-collinearity Visualization plots

Multi-collinearity Visualization plots

Multi-collinearity Visualization plots

Multi-collinearity Visualization plots

Usage

alt_mcvis(mcvis_result, eig_max = 1L, var_max = ncol(mcvis_result$MC))

ggplot_mcvis(mcvis_result, eig_max = 1L, var_max = ncol(mcvis_result$MC))

igraph_mcvis(mcvis_result, eig_max = 1L, var_max = ncol(mcvis_result$MC))

## S3 method for class 'mcvis'
plot(
  x,
  type = c("ggplot", "igraph", "alt"),
  eig_max = 1L,
  var_max = ncol(x$MC),
  ...
)

Arguments

mcvis_result

Output of the mcvis function

eig_max

The maximum number of eigenvalues to be displayed on the plot.

var_max

The maximum number of variables to be displayed on the plot.

x

Output of the mcvis function

type

Plotting mcvis result using "igraph" or "ggplot". Default to "ggplot".

...

additional arguments (currently unused)

Value

A mcvis visualization plot

Author(s)

Chen Lin, Kevin Wang, Samuel Mueller

Examples

set.seed(1)
p = 10
n = 100
X = matrix(rnorm(n*p), ncol = p)
X[,1] = X[,2] + rnorm(n, 0, 0.1)
mcvis_result = mcvis(X)
plot(mcvis_result)
plot(mcvis_result, type = "igraph")
plot(mcvis_result, type = "alt")

leaffur/mcvis documentation built on Aug. 28, 2023, 9:54 a.m.