This function is a wrapper around ggplot2::ggsave
. It provides a suggested export with square dimensions for a canvas created using the aRtsy
package.
saveCanvas(plot, filename, width = 7, height = 7, dpi = 300)
No return value, called for saving plots.
a ggplot2 object to be saved.
the filename of the export.
the width of the artwork in cm.
the height of the artwork in cm.
the dpi
(dots per inch) of the file.
Koen Derks, koen-derks@hotmail.com