1

I used ggpairs to show the correlation between 10 parameters and it came out nicely. However, when I tried using ggcorr, only a few correlation number showed up, which the results were similar to using cor().

I wonder what are the differences between the calculation method between ggpairs and ggcorr?

enter image description here enter image description here

Thanks!

Eileenleen
  • 21
  • 2

1 Answers1

0

Hard to tell without reproducible example, but both methods rely on the same defaults: pairwise and pearson. So if you are not changing those defaults it should give similar findings. For displaying coefficients, ggcorr rounds to 1 decimal and ggpairs rounds to 3. Specifying ggcorr to round to three digits gives the same result:

ggcorr(iris, label = TRUE, label_round = 3)
ggpairs(iris)
Jonni
  • 804
  • 5
  • 16