corr_matrix | R Documentation |
Using the results obtained from the corrp function, this function creates a correlation matrix.
corr_matrix(c, ...)
## Default S3 method:
corr_matrix(c, col = c("infer.value", "stat.value", "isig"), isig = TRUE, ...)
## S3 method for class 'clist'
corr_matrix(c, col = c("infer.value", "stat.value", "isig"), isig = TRUE, ...)
c |
[ |
... |
Not used. Included for S3 method consistency. |
col |
[ |
isig |
[ |
Igor D.S. Siciliani, Paulo H. dos Santos
iris_cor <- corrp(iris)
iris_m <- corr_matrix(iris_cor, isig = FALSE)
if (require("corrplot")) {
corrplot(iris_m) # You can visualize the matrix using corrplot
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.