Skip to contents

Custom theme that can be applied to ggplot2 plots. Increases base font size, sets a white background, grey grid, and black border.

Usage

tr_theme(base_size = 18, base_family = "", grid = TRUE)

Arguments

base_size

Base font size applied to all text in the plot (default 18)

base_family

Base font type applies to all text in the plot

grid

Determines if grid lines should be drawn. Defaults to TRUEfor which only "major" grid lines are drawn.

Value

A ggplot2 theme

References

None.

Examples

if (FALSE)
  ggplot(mtcars, aes(cyl, mpg)) + geom_point() + tr_theme()