R/custom_theme.R

Defines functions custom_theme

Documented in custom_theme

#' Custom \code{ggplot2} theme settings
#'
#' @return A \code{ggplot2} \code{theme} object
#'
#' @examples
#' ggplot(data = mtcars) +
#' geom_point(aes(x = mpg, y = cyl)) +
#' custom_theme()
custom_theme <- function() {
  theme_bw() +
    theme(panel.grid.minor.x = element_blank(),
          # panel.grid.major.x = element_blank(),
          plot.caption = element_text(hjust = 0),
          text = element_text(family = 'serif'),
          plot.title = element_text(face = 'bold'),
          axis.title = element_text(face = 'bold'))
}
andremenegatti/cagedExplorer documentation built on July 1, 2020, 1:25 a.m.