tr_theme: Customized ggplot2 theme

View source: R/tr_theme.R

tr_themeR Documentation

Customized ggplot2 theme

Description

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

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.

See Also

https://www.github.com/travis-m-blimkie/tRavis

Examples

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


travis-m-blimkie/tRavis documentation built on April 9, 2024, 11:45 p.m.