strengejacke / sjPlot

sjPlot - Data Visualization for Statistics in Social Science
https://strengejacke.github.io/sjPlot
603 stars 91 forks source link

Replace stats::cor with psych:corr to allow for p-correction (and some other formatting issues) #877

Open cschwarz007 opened 1 year ago

cschwarz007 commented 1 year ago

I had the need to create a correlation table, but with corrected p-values (given alpha-inflation). I hence changed the correlation function to use the psych (rather than stats) package. At the same time, I introduced some flexibility by allowing to choose whether to show leading zeros for both p-values and correlation measures (which in psychology should not have a leading zero as values can only be -1..1).