Description Usage Arguments Details Author(s) See Also Examples
Insert a plot into the RTF document.
1 2 |
this |
An RTF object. |
plot.fun |
Plot function. |
width |
Plot output width in inches. |
height |
Plot output height in inches. |
res |
Output resolution in dots per inch. |
... |
Arguments for |
Plots are added to the document as PNG objects. This function will work with all base graphics methods for plotting. For more sophisticated plots, you may need to wrap your plot code into a function, and then pass a reference to that function to this method. The parameters for the plot method would then get passed in as '...' above.
To output a ggplot2 plot, simply assign the plot to a variable. Then use 'print' as the plot function and pass in the plot variable assigned above.
Michael E. Schaffer
For more information see RTF
.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.