Description Usage Arguments Details
View source: R/supporting_functions.R
WriteJpeg
Saves the plot as a jpeg
1 | WriteJpeg(plt, plt.title, w = 10, h = 6, u = "in", r = 500)
|
plt |
(ggplot plot object) plot to write to file |
plt.title |
(character string) title of the plot, used to name the output file |
w |
(integer, optional with default value of 10) width of graphics device |
h |
(integer, optional with default value of 6) height of graphics device |
u |
(character, optional with default value of "in") the units in which height and weight are given. Can be "in", "px", "cm", or "mm". |
r |
(integer, optional with default value of 500) nominal resolution in ppi |
Opens the jpeg graphics device with the specified settings and saves the plot to an image file (.jpeg)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.