alt_mcvis | R Documentation |
Multi-collinearity Visualization plots
Multi-collinearity Visualization plots
Multi-collinearity Visualization plots
Multi-collinearity Visualization plots
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),
...
)
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) |
A mcvis visualization plot
Chen Lin, Kevin Wang, Samuel Mueller
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.