Inspired by the ggsave, this function facilitates the export of xpose plots.
xpose_save(plot = last_plot(), file = NULL, dir = NULL, device = NULL, width = 7, height = 6, units = c("in", "cm", "mm"), dpi = 200, ...)
A xpose plot object.
A name with file extension (if device is
Directory under which the xpose plots will be saved. Template variables
Graphical device to use. Can be either be a device function
Plot size in
Units of the plot size ('in', 'cm', or 'mm').
Plot resolution. Applies only to raster output types.
Additional arguments passed on to ggsave or graphics