Relative Content

Tag Archive for rggplot2ggcorrplot

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?

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?