I am using the corrplot()
function in R to create a correlation heatmap. I want to display the p-values for the correlations.
corrplot(as.matrix(M2), method="color", p.mat = as.matrix(p_mat2), sig.level=0.05, tl.cex=font_size, insig="p-value")
I would like to display really small p-values in some cases, and show more than two digits. I saw that there is the number.digits parameter, however this seems to be only for the display of the correlation coefficient. Is there any setting to control the number of digits for the displayes p-values?