Skip to contents

Shared across the package so charts look like one family. The visual choices are inspired by data-journalism graphics (FT, Pew Research, The Economist): off-white background, only horizontal grid lines, axis line on the data side, left-aligned title block, and tonal grey for non-data ink.

Usage

shewhart_theme(base_size = 10.5, base_family = "")

Arguments

base_size

Base font size, in points.

base_family

Base font family. Empty string uses the system default sans-serif. We do not hard-code a Google Font so the theme works in offline / CRAN-check environments.

Value

A ggplot2::theme() object.

Details

Use it from your own layers when you want a chart that matches the package's identity:

ggplot(d, aes(x, y)) + geom_line() + shewhart_theme()

Examples

library(ggplot2)
df <- data.frame(x = 1:50, y = cumsum(rnorm(50)))
ggplot(df, aes(x, y)) + geom_line() + shewhart_theme()