If we want to highlight non-significant p-values, we can use the p.mat argument of the ggcorrplot function as illustrated below:ggcorrplot(cor_mat, # Draw ggcorrplot with p-values p.mat = cor_test_mat)As you can see in Figure 4, we have added a cross at each matrix position ...
The easiest way to visualize a correlation matrix in R is to use the package corrplot. In our previous article we also provided a quick-start guide for visualizing a correlation matrix using ggplot2. Another solution is to use the function ggcorr() in ggally package. However, the ggally ...