Include `cor.mtest` function into base corrplot #82

Open
vsimko opened this Issue Feb 10, 2017 · 1 comment

Comments

Projects
None yet
3 participants
Collaborator

vsimko commented Feb 10, 2017

I saw that the cor.mtest function is being used:

Maybe we should include it to corrplot as a function.

vsimko added the feature label Feb 10, 2017

vsimko added this to the Corrplot Version 1.0 milestone Feb 10, 2017

taiyun was assigned by vsimko Feb 10, 2017

Hi,

This would be great.

I think that the corrplot package is a place where we expect to have such functionality even if it's possible to compute the matrix of correlations and p-values using the Hmisc::rcorr() function.

One problem with Hmisc::rcorr() is that, it doesn't support kendall correlation method.

library(Hmisc)
res <- rcorr(as.matrix(mtcars[, 1:5]), type = "pearson")

res$r # the matrix of correlations
res$P # the matrix p-values
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment