Skip to contents

Common plotting theme that can be applied to any ggplot object. The theme is based on ggthemes::theme_foundation(), with some additional features.

Usage

plot_theme(base_size = 12, base_family = "sans", show_grid = NULL, ...)

Arguments

base_size

(numeric)
Numeric input specifying the base font size, which will be passed to ggthemes::theme_foundation().

base_family

(character)
Base font family (e.g., "sans", "mono", "serif"). Run windowsFonts() to check for available options. Input will be passed to ggthemes::theme_foundation().

show_grid

(character)
Character inputs specifying whether to show "major" or "minor" grid lines. Default is NULL to not show any grid lines. Both "major" and "minor" grid lines can be plotted by providing a character vector, i.e., show_grid = c("major", "minor").

...


Additional arguments passed to ggplot2::theme().

Value

ggplot with specified theme