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)

Arguments

plot

a ggplot2 object to be saved.

filename

the filename of the export.

width

the width of the artwork in cm.

height

the height of the artwork in cm.

dpi

the dpi (dots per inch) of the file.

Value

No return value, called for saving plots.

Author

Koen Derks, koen-derks@hotmail.com