Description Usage Arguments Examples
This is a function to save standardized images for Urban Institute publications. For more functionality like custom widths and heights, use ggsave() directly.
1 2 3 4 5 6 7 |
filename |
File name to create on disk. |
plot |
Plot to save, defaults to last plot displayed. |
size |
Size of plot. Must be one of "small" (3.25 x 2 inches), "medium" (6.5 x 4 inches), or "large" (9 x 6.5 inches). |
dpi |
Plot resolution. Also accepts a string input: "retina" (320), "print" (300), or "screen" (72). Applies only to raster output types. |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.