R/sgl_plot.R

Defines functions print.sgl_plot

#' @export
print.sgl_plot <- function(x, ...) {
  rgs <- x[names(x) != "result_dfs"]
  dfs <- x$result_dfs
  casted_dfs <- cast_columns(rgs, dfs)
  post_cta_dfs <- perform_ctas(rgs, casted_dfs)
  gg_p <- rgs_to_ggplot2(rgs, post_cta_dfs)
  suppressMessages(suppressWarnings(print(gg_p)))
  invisible(x)
}

Try the rsgl package in your browser

Any scripts or data that you put into this service are public.

rsgl documentation built on June 9, 2026, 1:07 a.m.