Description Usage Arguments Value
View source: R/helper_functions.R
Single call for saving and displaying plots
1 | plot_handler(plot_logical, output_path, plot_call, plot_name)
|
plot_logical |
logical; TRUE if a plot should be displayed in the default graphics device, FALSE if no plot should be displayed. |
output_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. |
plot_call |
plot; either the code to generate a plot (ex: |
plot_name |
string; name that should be given to the figure. Do not include ".pdf". |
Either a figure output to the default graphics device, a saved pdf, or both.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.