theme_fivethirtyeight: Theme inspired by FiveThirtyEight plots

View source: R/fivethirtyeight.R

theme_fivethirtyeightR Documentation

Theme inspired by FiveThirtyEight plots

Description

Theme inspired by the plots that were produced by the site FiveThirtyEight (fivethirtyeight.com).

Usage

theme_fivethirtyeight(base_size = 12, base_family = "sans")

Arguments

base_size

base font size, given in pts.

base_family

base font family

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

ggthemes documentation built on Nov. 21, 2023, 5:08 p.m.