R/reset-ggplot.R

Defines functions ggplot_add.reset_ggplot reset_ggplot

Documented in reset_ggplot

#' @title Reset Ggplot
#' @description change annotation mode to main plot mode.
#' @return a gg object.
#' @rdname reset_ggplot
#' @export
reset_ggplot <- function() {
  structure(list(), class = "reset_ggplot")
}

#' @export
ggplot_add.reset_ggplot <- function(object, plot, object_name) {
  as_cpx_ggplot(plot)
}
Hy4m/newplot documentation built on Dec. 17, 2021, 11:24 p.m.