I am trying to generate a correlogram using the rcorr function (hmisc package) and corrplot
library("Hmisc")
library("corrplot")
res2<-rcorr(as.matrix(A), type = "spearman")
corrplot(res2$r, order="AOE",
p.mat = res2$P, sig.level = 0.05, insig = "blank")
I get the correlogram, but with an error message: "error in data.frame(..., check.names = FALSE) : arguments imply differing number of rows: 169, 156" I can`t see anything wrong with the rcorr output. Can anyone help me? Thanks!