Theme inspired by the plots from FiveThirtyEight.com.
Palettes
The theme sets fivethirtyeight_pal() for discrete color and fill scales as
the default palettes, so a plot draws in the theme's colors without a
matching scale. A scale_*() added to the plot still takes precedence.
Examples
library(ggplot2)
p <- ggplot(mtcars, aes(x = wt, y = mpg, colour = factor(gear))) +
geom_point() +
facet_wrap(~am) +
geom_smooth(method = "lm", se = FALSE) +
scale_color_fivethirtyeight() +
theme_fivethirtyeight()
p
#> `geom_smooth()` using formula = 'y ~ x'
