When plotting several plots on an interactive device, the user is given the chance to examine each successive plot and has to press enter to see the next one. When plotting to a file, all plots are produced in sequence, without user interaction. This results in several pages in a PDF file. For image files (JPEG, PNG, etc.) the file name has to contain a numeric placeholder to produce several files instead of overwritting them (e.g. "Rplot
1 2 3 4 5 |
x |
list of ggplots to display |
... |
other arguments not used by this method |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.