R/no_legend.R

Defines functions no_legend

Documented in no_legend

#' Return ggplot object without legend
#'
#' @param gplot ggplot object from which to remove legend
#'
#' @return ggplot without legend
#'
#' @import ggplot2
#' @export
no_legend = function(gplot){
  gplot+theme(legend.position="none")
}
gkane26/rextras documentation built on June 1, 2022, 7:21 p.m.