Drawn from Fundamentals of Data Visualization by Claus O. Wilke
If there is a clear visual ordering in your data, make sure to match it in the legend.
If there is a clear visual ordering in your data, make sure to match it in the legend.
Show the patterns and no extraneous information
Show the patterns and no extraneous information
Show the patterns and no extraneous information
Recommended: Okabe Ito, ColorBrewer Dark2, ggplot2 hue
Recommended: Colorbrewer Blues, Heat, Viridis
Recommended: CARTO Earth, ColorBrewer PiYG, Blue-Red
Recommended: Okabe Ito Accent, Grays with accent, ColorBrewer Accent
Use qualitative color scales for three to five different categories
A properly designed sequential scale (e.g. Heat) presents a continuous gradient from dark to light colors
Popular color contrasts in diverging scales can become indistinguishable for some forms of color-vision deficiency. ColorBrewer PiYG (pink to yellow-green) works for all forms of color-vision deficiency.
Qualitative scales (e.g. Okabe Ito) require that many different colors are distinguishable from each other under all forms of cvd.
Error bars don't represent the variation within each category or the uncertainty of the sample means well.
Kernel density plots help to visualize several distributions at once.