This is a wrapper around ggplot2::ggsave()
which allows one to easily save plots
to the commonly used paper sizes of the ISO 216 A standard. "A4" is the default but
the full range - "A0" to "A10" - can be specified.
1 2 |
filename |
File name to create on disk. |
plot |
Plot to save, defaults to last plot displayed. |
path |
Path to save plot to (combined with filename). |
page_size |
Page size to use. Must be one of "A0" through to "A10". |
portrait |
The orientation of the page. |
dpi |
Plot resolution. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.