Save ggplot2 object as a .png. If a folder called Plots exists in your current working directory then the plot will be saved to this location.
1 | save_plot_png(plot, title, subfolder = NULL, pwidth = 790, pheight = 553)
|
plot |
the plot to save |
title |
name to give file |
subfolder |
a subdirectory of existing 'Plots' directory where current plot should be saved |
pwidth |
width of the plot in pixels |
pheight |
heigh of the plot in pixels |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.