taiyun / corrplot

A visual exploratory tool on correlation matrix
https://github.com/taiyun/corrplot
Other
316 stars 86 forks source link

Option to mark significant correlations #99

Closed michaellevy closed 7 years ago

michaellevy commented 7 years ago

There are a lot of good options for how to distinguish correlations that do vs don't hit a significance threshold, but no option to print all of the correlations and highlight only those that are significant.

vsimko commented 7 years ago

Looks good. I tried the following code:

library(corrplot)
M <- Hmisc::rcorr(as.matrix(mtcars))
corrplot(M$r, p.mat = M$P, insig = "label_sig",
         sig.level = c(.001, .01, .05), pch.cex=0.9, pch.col = "white")

which produced the following image: image

vsimko commented 7 years ago

I'll merge your changes and increase the version number as well.

taiyun commented 7 years ago

Looks nice!

smesteves commented 5 years ago

Is there a way to add both the coefficient and the signification in the same triangle?