theme_chang: Chang theme for ggplot2

Description Usage Details Examples

View source: R/theme_chang.R

Description

Custom ggplot2 theme inspired by the plots in Raymond Chang's "Physical Chemistry for the Chemical and Biological Sciences."

Usage

1
2
3
4
5
6
theme_chang(
  base_size = 11,
  base_family = "Helvetica",
  base_line_size = base_size/22,
  base_rect_size = base_size/22
)

Details

theme_chang() is a minimal design suited for illustrating single lines, functions, or trends, or distinguishing one particular variable. Theme includes the distinctive red used throughout the book, inward facing axis ticks, and blank background.

Examples

1
ggplot(mtcars, aes(wt, mpg)) + geom_point() + geom_smooth(color = changred, se = FALSE) +theme_chang()

zmorrissey/commonR documentation built on Sept. 15, 2021, 2:12 p.m.