R/get-plot-code.R

Defines functions get_plot_code

get_plot_code <- function(p) {
  if (!inherits(p, "ggplot"))
    stop("input must be a ggplot2 object")
  attr(p, "gogoplot")
}
wcmbishop/gogoplot documentation built on May 29, 2019, 10:39 a.m.