我想在
corrplot
代码:
library(corrplot) M = cor(mtcars) corrplot(M, method = 'number')
在 R 中有什么方法可以做到这一点吗?
我们可以这样做:只需输入一个带零的列:
library(corrplot) M <- cor(mtcars) M <- cbind(M[, 1:2], rep(0, nrow(M)), M[, 3:ncol(M)]) corrplot(M, method = 'number')