15-level colorblind-friendly palette
If, like me, you occasionally struggle with the tyranny of the 7-level colorblind friendly palette, you might be interested in this 15-level palette. For people with deuteranopia or protanopia, it resolves into shading series of black, yellow, and blue, which is pretty neat.
The palette came from this blog post, which references this site. There are two cases where the listed RGB numbers didn’t match the color; the code below matches the image instead. If you run both lines in R, you should get a pie chart that shows you all of the colors.
Enjoy!
pal <- c("#000000","#004949","#009292","#ff6db6","#ffb6db", "#490092","#006ddb","#b66dff","#6db6ff","#b6dbff", "#920000","#924900","#db6d00","#24ff24","#ffff6d") pie(rep(1,15), col=pal)This article was posted in Resources and tagged data visualization, R, useful.