R/ggplot_theme.r

#' ggplot red title theme
#'
#' @param build_on_theme : Another ggplot theme to build up.
#'
#' @return A ggplot theme.
#' @export
#'
#' @examples
#'
#' ggplot2::ggplot(data = mtcars, ggplot2::aes(x = disp, y = mpg)) +
#'  ggplot2::geom_point() +
#'   ggplot2::ggtitle("mtcars Data")+
#'   ggplot_red_title_theme()
#'
ggplot_red_title_theme <- function(build_on_theme = ggplot2::theme_bw){
  return(build_on_theme() + ggplot2::theme(plot.title = ggplot2::element_text(color = "darkred")))
}
ArithmeticR/TOmisc documentation built on May 14, 2019, 12:43 p.m.