save_fig | R Documentation |
Export a ggplot2 object as a pdf and a png
save_fig(plot, pdf_path = NULL, ht = NULL, wdth = NULL, ...)
plot |
a ggplot2 object |
pdf_path |
path to which plot should be saved; if |
ht |
height in inches, defaults to 9*0.4=3.6 |
wdth |
width in inches, defaults to 16*0.4=6.4 |
... |
other arguments passed to |
Also saves in ./presentations/presentation-figs
for convenient use with xaringan HTML slide shows
Silently writes files to disk and prints message
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.