Write to a pdf, but allow printing to the default device first.
1 |
file |
The filename to be passed to pdf() |
plotFn |
A function that wraps the plot statement. Should not take any arguments. |
printToDefaultDev |
If TRUE (default), the plot function will first be called without opening the pdf graphics device. Thus, it will print to the screen, or in your markdown output, etc. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.