ggsave2 | R Documentation |
ggsave()
.This function behaves just like ggplot2::ggsave()
. 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 |
Filename of the plot. |
plot |
Plot to save, defaults to last plot displayed. |
device |
Device to use, automatically extract from file name extension. |
path |
Path to save plot to (if you just want to set |
scale |
Scaling factor. |
width |
Width (defaults to the width of current plotting window). |
height |
Height (defaults to the height of current plotting window). |
units |
Units for width and height when either one is explicitly specified (in, cm, or mm). |
dpi |
DPI to use for raster graphics. |
limitsize |
When |
... |
Other arguments to be handed to the plot device. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.