R/rm_axes.R

Defines functions rm_y rm_x

Documented in rm_x

#' Remove x/y axis labels from ggplot object
#'
#' @return a \code{ggplot} object
#' @export
#'
#' @examples
#'
rm_x <- function(){

  ggplot2::theme(axis.title.x = ggplot2::element_blank(),
                 axis.text.x = ggplot2::element_blank(),
                 axis.ticks.x = ggplot2::element_blank())

}

#' @export
rm_y <- function(){

  ggplot2::theme(axis.title.y = ggplot2::element_blank(),
                 axis.text.y = ggplot2::element_blank(),
                 axis.ticks.y = ggplot2::element_blank())

}
kbvernon/deseRt documentation built on May 27, 2020, 11:44 p.m.