R/blank_y_axis.R

Defines functions blank_y_axis

Documented in blank_y_axis

#' @title Blank Y-axis
#'
#' @description Remove the Y axis and all markings from the plot
#'
#' @param ... Additional arguments to pass to `theme()`. Defaults is none.
#'
#' @export
blank_y_axis = function(...)  {
  dots = list(...)
  do.call(theme, c(list(axis.title.y = element_blank(),
                        axis.text.y = element_blank(),
                        axis.ticks.y = element_blank()),
                   dots))
}
Prometheus77/ggez documentation built on Jan. 9, 2020, 7:57 a.m.