Creates a list of arguments for ggplot2::ggsave() with optional dimension and DPI parameters.
create_ggsave_args(
filename,
plot,
width = NULL,
height = NULL,
units = "in",
dpi = NULL
)list of arguments suitable for do.call(ggplot2::ggsave, ...)
output filename
plot object
width of the output image. If NULL, not included in arguments.
height of the output image. If NULL, not included in arguments.
units for width and height. If NULL, not included in arguments.
resolution of the output image. If NULL, not included in arguments.