IndrajeetPatil / ggstatsplot

Enhancing {ggplot2} plots with statistical analysis 📊📣
https://indrajeetpatil.github.io/ggstatsplot/
GNU General Public License v3.0
2.05k stars 190 forks source link

Feature request: implement Kendall's correlation method in ggcorrmat #433

Closed GegznaV closed 4 years ago

GegznaV commented 4 years ago

Describe the solution you'd like Add the possibility to chose Kendall's correlation coefficient in ggcorrmat()

How could we do it? I didn't look how it is implemented in ggstatsplot now, but usually method "kendall" is used instead of others in cor.test().

ggcorrmat(data = iris, type = "kendall") 
IndrajeetPatil commented 4 years ago

This used to be supported in ggstatsplot, but I decided against it because I wanted to be consistent across functions in terms of how many tests are supported for each type of statistics (always 1). ggcorrmat was exception where it was confusing whether specifying type == "nonparametric" was supposed to return Spearman's rho or Kendall's tau.

I think a better solution is to use correlation package to extract stats details and then use a visualization from a host of packages that support visualization of correlation matrices.