arrange_plots: Same function as 'grid.arrange', with the functionality of...

Description Usage Arguments

Description

Same function as grid.arrange, with the functionality of integrating ComplexHeatmap and adding panel labels

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
arrange_plots(
  grob_list,
  save_path,
  grid_layout,
  panel_label = NULL,
  margin_width = 0.79,
  margin_height = 0.79,
  panel_spacing = 0.01,
  plot_width = 9,
  plot_height = 9,
  aes_param = list(highlight_font = list(fontface = "bold", fontsize = 40), font_fam =
    "Arial")
)

Arguments

grob_list

a list of plots. They can be ggplots, ComplexHeatmap, data.frame, character, image array

save_path

where the plots are saved

grid_layout,

same as the argument in grid.arrange

margin_width

the width of the margin in inches. The default is 0.79in (2cm). Same unit in margin_height, page_width, page_height

plot_width

the width of each subplot.

plot_height

same concept as plot_width


Yutong441/TBdev documentation built on Dec. 18, 2021, 8:22 p.m.