If you’re ever felt limited by correlation heat map packages in R, this post will show you how to write your own function to tidy the many correlations into a ggplot2-friendly form for plotting.
By the end, you will be able to run one function to get a tidied data frame of correlations. You can then run ggplot2 code on this data frame to make your own correlation heat maps.
If you just want the code, you can skip to the end. You can also read my other blog posts on my website, KHstats.
I really appreciate some of the packages and functions that allow me to make correlation plots super quickly using R. Here are a few examples:

#data-visualization #correlation #heatmap #ggplot2 #r-markdown

Customizable Correlation Plots in R
3.90 GEEK