util.ggsave | R Documentation |
ggsave wrapper to save svg and png at the same time
util.ggsave(filename, save.svg = TRUE, save.png = TRUE, ...)
filename |
File name to create on disk (without file ending). |
save.svg |
TRUE/FALSE save to svg |
save.png |
TRUE/FALSE save to png |
... |
Other arguments passed on to ggsave |
ggsave wrapper to save svg and png at the same time
## Not run:
library(ggplot2)
# create a simple plot:
ptest <- ggplot(mtcars, aes(x=hp, y=qsec)) +
geom_point()
# Save:
util.ggsave(plot=ptest, filename="test", path="C:/plots", width=12, height=12, dpi=300)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.