Thin wrapper over ggplot2::ggsave() that defaults width and
height to the size recorded by the figure function, so a figure with
thirty modules is not squeezed into the same canvas as one with three.
Arguments
- p
A plot from
tage_clock_forestortage_module_heatmap.- filename
Output path; the extension picks the device.
- width, height
Size in inches.
NULL(default) uses the recorded size, falling back to ggplot2's own default when there is none.- dpi
Resolution for raster devices.
- ...
Passed to
ggplot2::ggsave().
Examples
if (FALSE) { # \dontrun{
p <- tage_clock_forest(results, clocks_meta = clocks,
group_column = "Genotype", reference_group = "WT")
tage_save_plot(p, "forest.png") # recorded size
tage_save_plot(p, "forest.pdf", width = 7) # fixed width, recorded height
} # }