datacamp / ggdc

Datacamp Themes for ggplot2.
MIT License
6 stars 1 forks source link

Improving palette's color blind friendliness #1

Open karawoo opened 6 years ago

karawoo commented 6 years ago

The dc_pal() palette uses red and green for the first two colors, making it hard to read for people with red-green color blindness (which is pretty common: ~6% of males have it).

With simulated deuteranopia the mtcars plot looks like this:

screenshot 2018-01-04 12 25 24

I know these colors are picked based on the style guide, but would it be possible to at least put the red or green last in the palette so that the first few colors are more distinguishable?

ramnathv commented 6 years ago

Great suggestion @karawoo! Maybe @dandenney has some suggestions on how we can come up with a colorblind friendly palette?

dandenney commented 6 years ago

Yeah, there are some great tools for testing them. I'll find out what it takes to reorder them for the first step and then run them all through on of the testing apps.

ramnathv commented 6 years ago

Thanks, @dandenney. If we can have a colorblind friendly palette as a part of the style guide, that would be super useful :+1: