R/themes_ggplot.R

Defines functions theme_contour theme_eib theme_ceplane theme_ceac theme_default

Documented in theme_ceac theme_ceplane theme_contour theme_default theme_eib

# themes for ggplot functions ---------------------------------------------

#' bcea theme ggplot2
#' @name theme_bcea
#' @keywords internal aplot
#' 
theme_default <- function() {
  
  theme_bw() %+replace%
    theme(legend.title = element_blank(),
          legend.background = element_blank(),
          text = element_text(size = 11),
          legend.key.size = grid::unit(0.66, "lines"),
          legend.spacing = grid::unit(-1.25, "line"),
          panel.grid = element_blank(),
          legend.key = element_blank(),
          legend.text.align = 0,
          plot.title = element_text(
            lineheight = 1.05,
            face = "bold",
            size = 14.3,
            hjust = 0.5),
          complete = TRUE)
}

#' @rdname theme_bcea
#'
theme_ceac <- function() {
  theme_default()  
}

#' @rdname theme_bcea
#'
theme_ceplane <- function() {
  theme_default()
}

#' @rdname theme_bcea
#'
theme_eib <- function() {
  theme_default()
}

#' @rdname theme_bcea
#'
theme_contour <- function() {
  theme_default()
}

Try the BCEA package in your browser

Any scripts or data that you put into this service are public.

BCEA documentation built on Nov. 25, 2023, 5:08 p.m.