Ben Baumer
Type ?geom_point() to see which asthetics are allowed for the point plot
Sequential
Diverging
Categorical
Big Idea: color choices matter and there are better and worse choices
Map saturation to numeric variable
No more than 5–6 levels
People interpret high saturation as more
Map hue to numeric variable
Generally, no more than 2 anchor colors
People interpret darker hue as more
Two colors used to indicate extremes of a range
Neutral color in the middle
distinguish between zero and missing
Different color = different category
choose colors that are - perceptually distant - roughly the same saturation
RColorBrewer
package
scale_color_brewer()
function
viridis
palettes mimic matplotlib
Python library
ggplot2
default colorPurples
paletteYlGn
paletteinstall.packages(“ggthemes”)
ggthemes