saveCustomPlot.RdA very basic helper function for saving plots with default settings. If more customized settings are necessary, it is recommended to see methods associated with the used plotting packages, as this is a simplified wrapper for those methods. In the case of Heatmaps, see ComplexHeatmap::draw(). For all other plots, see ggplot2::ggsave().
saveCustomPlot(obj, filename, width = 14, height = 7, format = "png")None