An R Package That Exports Plots to Pre-defined Sizes and File Types
Works best with latest versions of R and RStudio
Note that if you've updated your OSX recently, you will need to download and install the latest version of xQuartz: - https://www.xquartz.org/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.