p is a plot (usually made by ggplot() call) ofile is a string with relative path and name, must end in .png
1 | save_plot(p, ofile)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.