Plot theme for ggplots
plot_theme.Rd
Common plotting theme that can be applied to any ggplot object. The theme is
based on ggthemes::theme_foundation()
, with some additional features.
Arguments
- base_size
(
numeric
)
Numeric input specifying the base font size, which will be passed toggthemes::theme_foundation()
.- base_family
(
character
)
Base font family (e.g., "sans", "mono", "serif"). RunwindowsFonts()
to check for available options. Input will be passed toggthemes::theme_foundation()
.- show_grid
(
character
)
Character inputs specifying whether to show "major" or "minor" grid lines. Default isNULL
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 toggplot2::theme()
.