Description Usage Arguments Value
Helper function that saves (gg)plots as PNG and PDF simultaneously The default size should save plots large enough for a poster Modified from: https://gist.github.com/sheymann/2399659
1 2 |
filename |
Base file name/path |
plot |
The gggplot2 object to be saved |
width |
width of the save image. Default: 15 cm |
height |
height of the save image. Default: 15 cm |
save_data |
whether to save the data underlying the plot. The filename will be a composite of _filename_ and ".data.txt" |
... |
Additional ggsave arguments |
Files are saved
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.