Save high resolution images
heat_map_save(
save_as,
width = 7,
height = 7,
units = "in",
res = 300,
multiple = FALSE,
layout = NULL,
...
)
name of the file to which the plot should be saved (including the file extension). Supported file formats include png, tiff, jpeg, svg and pdf.
numeric indicating the width of exported plot in units
,
set to 7 by default for image with width of 7 inches.
numeric indicating the height of the exported plot in
units
, set to 7 by default for image with height of 7 inches.
units to be used to set plot size, can be either pixels
(px
), inches (inches
), centimetres (cm
) or millimetres
(mm
). Set to "in"
by default. Units cannot be altered for
svg
and pdf
graphics devices.
resolution in dpi, set to 300 by default.
logical indicating whether multiple pages should be saved to
separate numbered files, set to TRUE
by default.
a vector or matrix defining the custom layout of the plot to be
created using heat_map_layout
, set to NULL by default.
additional arguments for the appropriate png()
,
tiff()
, jpeg()
, svg()
or pdf
graphics devices.
if (FALSE) {
# Save Heatmap
heat_map_save("Heatmap.png",
height = 7,
width = 5)
# Construct Heatmap
heat_map(iris[1:10,],
scale = "range",
title = "Iris Heatmap",
axis_label_x = "Plant Parameter",
axis_label_y = "Row ID")
}