kassambara / ggcorrplot

Visualization of a correlation matrix using ggplot2
https://rpkgs.datanovia.com/ggcorrplot/
186 stars 35 forks source link

Customizing correlation coefficient labels #15

Open kassambara opened 5 years ago

kassambara commented 5 years ago

Question from a user

I am using it for a large plot of 26 variables. Would it be possible to enable the correlation coefficient to be in bold? Also, would it be possible to display it without the initial zero - instead of 0.23 and -0.67, .23 and -.67?

PawelKulawiak commented 5 months ago

without the initial zero: label <- round(x = corr[, "value"], digits = digits) |> stringr::str_replace("\\b0(\\.\\d+)", "\\1")