Learn R Programming

aRtsy (version 0.2.4)

saveCanvas: Save a Canvas to an External Device

Description

This function is a wrapper around ggplot2::ggsave. It provides a suggested export with square dimensions for a canvas created using the aRtsy package.

Usage

saveCanvas(plot, filename, width = 7, height = 7, dpi = 300)

Value

No return value, called for saving plots.

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.

Author

Koen Derks, koen-derks@hotmail.com