ggcorrplot icon indicating copy to clipboard operation
ggcorrplot copied to clipboard

Suggest reversing the color key to be red to blue

Open kwstat opened this issue 7 years ago • 5 comments

Corrgrams were popularized by Friendly in this paper: www.datavis.ca/papers/corrgram.pdf

He used a red (negative) to blue (positive) color palette, which has since become a sort of standard for corrgram colors.

I think your reverse color scheme will confuse many people.

kwstat avatar May 25 '17 22:05 kwstat

Thank you for this suggestion. I will update the package to use the standard color scheme. In the meantime, user can change color as suggested at: http://www.sthda.com/english/wiki/ggcorrplot-visualization-of-a-correlation-matrix-using-ggplot2

kassambara avatar May 26 '17 05:05 kassambara

Thanks.

kwstat avatar May 26 '17 12:05 kwstat

Hi all. I randomly fell on this exchange, as I wanted to reverse the color scheme - because WHY on earth would anyone think red (hot) intuitively represents negative and blue (cold) represents positive values? I suggest we all go back to something that makes sense. ;)

jabbate avatar May 18 '21 02:05 jabbate

The intuitive interpretation is that negative correlation is bad (hence red) while positive correlation is good (some would use green, but blue is colorblind safe). (Think about levelplots with bad/good areas and it might make more sense). Any other interpretation is suspect. :-)

kwstat avatar May 18 '21 02:05 kwstat

I'm not sure about the intuitive "negative correlation is bad, positive correlation is blue" approach... the sign simply implies directionality of the correlation (i.e. proportional vs inversely proportional)). In sales, price and volume are negatively correlated, but that's not a bad thing. Personally, my intuition harkens to red being "hotter" and thus "higher". But we all have our own lenses for viewing things.

My question is, what is the simplest way to reverse the default scale on ggcorrplot so it can be to my liking?

jeffgoblue avatar Nov 22 '22 21:11 jeffgoblue