ggcorrplot icon indicating copy to clipboard operation
ggcorrplot copied to clipboard

Rounding of correlation matrix causes hclust ordering differences in the new version.

Open buddha2490 opened this issue 6 years ago • 1 comments

I recently updated the ggcorrplot package to 0.1.2. Running ggcorrplot() on a correlation matrix with the hc.order=T option, the ordering of the heatmap drastically changed compared to the older version. I don't know if this is a bug or intentional, but I thought I should point it out to you. Between the old vs new version, it looks like the only thing updated that could affect this is that you are rounding your correlation matrix. At least in my data, this is making quite a difference in the final results.

buddha2490 avatar Sep 27 '18 17:09 buddha2490

I am having the same problem with version 0.1.4. With hc.order = F, a correlation pair of r = -0.27 and p = 0.0549 is excluded (as it should be), but with hc,order = T, this correlation pair is included.

MichelineCampbell avatar Nov 29 '22 06:11 MichelineCampbell