ggsave()
.This function behaves just like ggsave()
from ggplot2. The main difference is
that by default it doesn't use the Dingbats font for pdf output. The Dingbats font
causes problems with some pdf readers.
ggsave2(
filename,
plot = ggplot2::last_plot(),
device = NULL,
path = NULL,
scale = 1,
width = NA,
height = NA,
units = c("in", "cm", "mm"),
dpi = 300,
limitsize = TRUE,
...
)
Filename of the plot.
Plot to save, defaults to last plot displayed.
Device to use, automatically extract from file name extension.
Path to save plot to (if you just want to set path
and not
filename
).
Scaling factor.
Width (defaults to the width of current plotting window).
Height (defaults to the height of current plotting window).
Units for width and height when either one is explicitly specified (in, cm, or mm).
DPI to use for raster graphics.
When TRUE
(the default), ggsave2()
will not
save images larger than 50x50 inches, to prevent the common error of
specifying dimensions in pixels.
Other arguments to be handed to the plot device.