Plot theme for ggplots
plot_theme.RdCommon 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 isNULLto 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().