View source: R/utility_functions.R
| savePDF | R Documentation | 
Save figure as pdf
savePDF(file.name, plot.handle, fig.width = 5, fig.height = 5, save.flag = T)
| file.name | path/filename of output pdf. A character. | 
| plot.handle | plot handle that will be saved as pdf. E.g., GGplot handle. | 
| fig.width | Numeric for plot width. Default is 5. | 
| fig.height | Numeric for plot height Default is 5. | 
| save.flag | Logical to save figure. Default is TRUE. | 
Nicholas Mikolajewicz
# save module figure
savePDF(file.name = "M01_QC_violin.pdf", plot.handle = plt.QC_violin, fig.width = 5, fig.height = 5, save.flag = save.pdf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.