Description Usage Arguments Value
View source: R/helper_functions.R
Save a figure as a pdf
1 |
path |
string; path to the directory where the figure should be saved. If the directory does not already exist, it will be created. If there is already a figure in the directory with the same name, it will be overwritten. |
name |
string; name that should be given to the figure. Do not include ".pdf". |
plot_call |
plot; either the code to generate a plot (ex: |
plot_logical |
logical; TRUE if a plot has already been created and displayed in the default graphics device, otherwise FALSE. |
A saved pdf of the figure created by plot_call
in the directory
named by path
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.