GenSave.RdSaves a pheatmap derived RGenEDA heatmap object to a file in various formats
including PNG, JPEG, TIFF, BMP, PDF, and SVG.
GenSave(
pheatmap_obj,
filename,
width = 8,
height = 6,
units = "in",
res = 300,
...
)A pheatmap object returned by an RGenEDA or pheatmap function.
Character string specifying the path and filename where the heatmap should be saved.
Numeric, the width of the output image. Default is 8.
Numeric, the height of the output image. Default is 6.
Character, units for width and height when saving raster images. Default is "in".
Numeric, the resolution (in dpi) for raster images. Default is 300.
Additional arguments passed to the graphics device function.
Invisibly returns the filename of the saved heatmap.
This function is similar in spirit to ggsave() but works specifically with pheatmap objects.