Skip to contents

Save heatmap with optimal output size (removing redundant whitespace)

Usage

save_hm(
  hm_obj,
  annotation_legend_side = "right",
  heatmap_legend_side = "right",
  merge_legend = TRUE,
  heatmap_legend_list = NULL,
  annotation_legend_list = NULL,
  output_file = "heatmap.pdf"
)

Arguments

hm_obj

heatmap created with ComplexHeatmap or create_hm()

annotation_legend_side

position of annotation legend by default = 'right'

heatmap_legend_side

position of annotation legend by default = 'right'

merge_legend

merge legends, by default = TRUE

heatmap_legend_list

list of custom legends, by default = NULL

annotation_legend_list

list of custom legends, by default = NULL

output_file

path for output file by default = "heatmap.pdf"