ggsave_twitter | R Documentation |
Save at the right dimensions at 300 dpi
ggsave_twitter(
filename,
plot = ggplot2::last_plot(),
device = ragg::agg_png,
path = NULL,
scale = 3,
width = 1200,
height = 675,
units = "px",
dpi = 300,
limitsize = FALSE,
bg = "white",
...
)
filename |
File name to create on disk. |
plot |
Plot to save, defaults to last plot displayed. |
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
|
path |
Path of the directory to save plot to: |
scale |
Multiplicative scaling factor. |
width , height |
Plot size in units expressed by the |
units |
One of the following units in which the |
dpi |
Plot resolution. Also accepts a string input: "retina" (320), "print" (300), or "screen" (72). Applies only to raster output types. |
limitsize |
When |
bg |
Background colour. If |
... |
Other arguments passed on to the graphics device function,
as specified by |
filename, quietly
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.