R/merge.R

Defines functions merge.ggplot merge.patchwork

#' @export
#'
merge.patchwork <- function(x, ...) {
  patchwork <- new_patchwork()
  patchwork$plots <- list(x)
  add_patches(plot_filler(), patchwork)
}
#' @export
#'
merge.ggplot <- function(x, ...) {
  x
}
thomasp85/patchwork documentation built on June 14, 2025, 8:53 a.m.