- plot
Plot to save, defaults to last plot displayed.
- filename
File name to create on disk.
- device
Device to use. Can either be a device function
(e.g. png), or one of "eps", "ps", "tex" (pictex),
"pdf", "jpeg", "tiff", "png", "bmp", "svg" or "wmf" (windows only). If
NULL (default), the device is guessed based on the filename extension.
- path
Path of the directory to save plot to: path and filename
are combined to create the fully qualified file name. Defaults to the
working directory.
- width
Plot size in units ("in", "cm", or "mm").
- height
Plot size in units ("in", "cm", or "mm"). If not supplied,
uses 0.618 * width when dir = "h" and 1.618 * width when dir = "v".
- units
Units of plot size ("in", "cm", or "mm"). Default is inches.
- dir
Orientation of the plot. One of h (default) for horizontal or
v for vertical.
- dpi
Plot resolution. Also accepts a string input: "retina" (320),
"print" (300), or "screen" (72). Only applies when converting pixel units,
as is typical for raster output types.
- embed_fonts
Logical. Use Ghostscript to embed fonts in a PDF graphic?
- ...
Additional arguments passed to ggplot2::ggsave()