R/ggheatmap_plotlist.R

Defines functions ggheatmap_plotlist

Documented in ggheatmap_plotlist

#' @name ggheatmap_plotlist
#' @title Show ggheatmap Plot List
#' @description Display the basic elements of the ggheatmap
#' @param ggheatmap heatmap, the result of ggheatmap
#'
#' @return plotlist
#' @example
#' #Please see examples in \link{ggheatmap}
#' @export

ggheatmap_plotlist <- function(ggheatmap){
  do.call('wrap_plots',ggheatmap$plotlist)+
    plot_annotation(tag_levels = list(paste("plotlist",1:length(ggheatmap$plotlist))))
  }
XiaoLuo-boy/ggheatmap documentation built on March 19, 2023, 4:55 p.m.