Description Usage Arguments Examples
This is a wrapper for ggsave
which saves ggplots in default IFS
dimensions for Word documents.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
filename |
Filename to create on disk (including .png) |
plot |
Plot to save |
path |
Path of the directory to save plot to: path and filename are combined to create the fully qualified file name. Defaults to current working directory. |
widescreen |
Default plot size is 100mm x 150mm. If |
save_data |
If |
data_dir |
The directory to store the data if |
data_name |
The directory to |
height |
The height of the plot (default in mm) |
width |
The width of the plot (default in mm) |
units |
The units for height and width (can take one of "mm", "in", "cm", or "px")). |
dpi |
Plot resolution. Also accepts a string input: "retina" (320), "print" (300), or "screen" (72). Applies only to raster output types. |
device |
Device to use, defaults to ".png". Can also be one of "eps", "ps", "tex" (pictex), "pdf", "jpeg", "tiff", "png", "bmp", "svg" or "wmf" (windows only). |
... |
Any other arguments for |
1 2 3 | ## Not run: g <- ggplot(mtcars, aes(mpg, wt)) + geom_point()
ggsave_ifs("a_graph.png", g, "~/output")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.