R/my_plot_theme.R

Defines functions my_plot_theme

Documented in my_plot_theme

#' My theme for a 7.5 X 5 in plot
#'
#' @return themed ggplot
#' @export
#'@import ggplot2
#' @example man/my_plot_theme_example.R
my_plot_theme <-
  function() {
  theme(axis.title = element_text(size = 14),
        plot.title = element_text(size = 16),
        axis.text = element_text(size = 12),
        legend.title = element_text(size = 14),
        legend.text = element_text(size = 12),
        panel.background = element_rect(fill = 'white'),
        panel.grid = element_line(color = '#e9e9e9'),
        panel.grid.minor = element_line(linetype = 'dashed'),
        axis.line = element_line(color = 'black'))
  }
Olukhunlay-hub/packr documentation built on May 28, 2022, 12:24 a.m.