Correct placement of significant correlations when displaying upper or lower half of matrix
I am using ggcorrplot
to visualize a correlation matrix. I want to remove non-significant correlation values but keep the color of the matrix cell. I can do this when showing the full matrix. However, the values are no longer displayed in the proper position if I show only the lower or upper portions of the matrix. How can I get the values to display properly when showing only one-half of the correlation matrix?
Remove value but keep color for insignificant correlations using ggcorrplot
I am using ggcorrplot
to visualize a correlation matrix. How can I show the correlation coefficient value inside the plot only if it is significant? For non-significant correlations there should be no value displayed but the color should still be present.
Viridis color scale for ggcorrplot
I am making a correlation matrix using the package ggcorrplot
. Within the package you can set a vector of three colors for the color scale bar using the colors = c(...)
function however, I was wondering if there is a way to set the scale bar to any of the Viridis color palettes?
Superscript and subscript labels on correlation matrix using ggcorrplot
I am trying to customize the labels on a correlation matrix made using the ggcorrplot
package. However, I cannot get the superscript or subscript formatting to work. How can I get the labels to display properly without using Unicode characters?