R/helper-funs.R

Defines functions new_ggplot_t new_ggplot_b new_ggplot_l new_ggplot_r

Documented in new_ggplot_b new_ggplot_l new_ggplot_r new_ggplot_t

#' @title Helper Functions
#' @description A wrapper of \code{new_ggplot()} and \code{new_plot()} function.
#' @param ... other parameters.
#' @return a modified gg object.
#' @rdname helper_funs
#' @export
new_ggplot_r <- function(...) {
  new_ggplot(..., dir = "right")
}

#' @rdname helper_funs
#' @export
new_ggplot_l <- function(...) {
  new_ggplot(..., dir = "left")
}

#' @rdname helper_funs
#' @export
new_ggplot_b <- function(...) {
  new_ggplot(..., dir = "bottom")
}

#' @rdname helper_funs
#' @export
new_ggplot_t <- function(...) {
  new_ggplot(..., dir = "top")
}
Hy4m/newplot documentation built on Dec. 17, 2021, 11:24 p.m.