theme_mejr: Custom ggplot2 theme

Description Usage Arguments Details See Also Examples

Description

A complete, minimal theme to be used with the ggplot2 package

Usage

1
2
3
theme_mejr(base_size = 11,
  base_family = getOption("ggdistribute.font"), black = 67,
  margin_add = 2, debug = FALSE, FUN = NULL, ...)

Arguments

base_size

base font size

base_family

base font family

black

Values from 0 to 255, indicating the darkest line and text colors (255).

margin_add

additive adjustment of margin spacing and tick length (in "pt" units). May be positive or negative.

debug

Add debug info to text.

FUN

Call a function before returning the theme elements.

...

Arguments passed to FUN

Details

You can use theme_update to change some aspect of this theme after using theme_set.

See Also

mejr_geom_defaults, ggplot2::theme_update, ggplot2::theme_set

Examples

1
2
3
4
5
6
7
8
library(ggplot2)

theme_set(theme_mejr(debug = TRUE))
example_plot()

theme_set(theme_mejr())
theme_update(axis.text = element_blank()) # any updates can go here
example_plot()

ggdistribute documentation built on May 2, 2019, 10:25 a.m.