How to plot the Significance codes in a correlation matrix
Signif. codes: 0 ‘’ 0.001 ‘’ 0.01 ‘’ 0.05 ‘.’ 0.1 ‘ ’ 1 Like this:
I've tried the followed code:
library(corrplot)
p.matc <- ggcorrplot::cor_pmat(mtcars)
testResc = cor.mtest(mtcars, conf.level = 0.95)
ggcorrplot::ggcorrplot(r, hc.order = FALSE, type = "lower",
lab_size = 3,pch.cex =5,digits =1,
tl.cex = 12, lab = TRUE,p.mat=p.matc,
outline.col = "white",
legend.title = "corr",title = "",
ggtheme = ggplot2::theme_classic(),
colors = c("#E46726", "white", "#6D9EC1"))
But I want something like this: