2014-10-05 26 views
4

我有一個簡單的8×8矩陣如何使用corrplot用簡單的矩陣

M <- matrix(rnorm(64), nrow=8, ncol=8) 

我應該如何改變它與library(corrplot)陰謀呢?無需轉換誤差

corrplot.mixed(M) 

# Error in corrplot(corr, type = "upper", method = upper, diag = TRUE, tl.pos = tl.pos, : 
    The matrix is not in [-1, 1]! 

我猜會假設矩陣應該是[-1,1]

回答

6

只是表明它不是一個相關矩陣:

library(corrplot) 
corrplot(M, is.corr = FALSE, method = "square") 

enter image description here