This is a wrapper around ggplot2::ggsave()
with some ATLAS-specific
defaults. The aspect ratio is fixed to 0.618 (the golden ratio) unless the height is
manually defined. Plots are automatically spell checked and warnings are
returned if there are possible mistakes. Finally, plots saved as a pdf have
the fonts embedded using extrafont::embed_fonts()
.
Plot to save, defaults to last plot displayed.
File name to create on disk.
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 of the directory to save plot to: path
and filename
are combined to create the fully qualified file name. Defaults to the
working directory.
Plot size in units
("in", "cm", or "mm").
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 of plot size ("in", "cm", or "mm"). Default is inches.
Orientation of the plot. One of h
(default) for horizontal or
v
for vertical.
Plot resolution. Also accepts a string input: "retina" (320), "print" (300), or "screen" (72). Applies only to raster output types.
Logical. Use Ghostscript to embed fonts in a PDF graphic?
Additional arguments passed to ggplot2::ggsave()
None. Called for side effects.