Description Usage Arguments Details Examples
A convenience function that prints a plot to file, and then returns HTML to embed that image in the page.
1 2 |
my_plot |
a plot object, or code that generates a plot |
file |
file location to output image to |
width |
width (in pixels) of the plot |
height |
height (in pixels) of the plot |
dpi |
the number of dots per inch used. Default is high to ensure plots are crisp on all displays |
dim |
passed to |
scale |
the scale factor to use when scaling plots for web display. |
device |
the device to use for the plot call. |
... |
optional arguments passed to
|
The dim
attribute is passed on to par(
mfrow='dim' )
; ie, it is used if you are calling a plot
function that writes more than one plot.
The png
device is used.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.