R/theme.R

Defines functions theme_strip

Documented in theme_strip

#' A theme to minimally strip away the context
#'
#' Note this is not a complete theme hence why there are no arguments.
#'
#' @examples
#' library(ggplot2)
#' ggplot(cars, aes(dist, speed)) + theme_strip()
#'
#' @export
theme_strip <- function() {
  ggplot2::theme(axis.title = ggplot2::element_blank(),
                 axis.text = ggplot2::element_blank(),
                 axis.ticks.length = grid::unit(0, "mm"))

}
dicook/nullabor documentation built on July 24, 2024, 3:31 a.m.