Description Usage Arguments Value Examples
Add plot into a document object
1 2 3 4 5 6 7 8 9 10 11 12 13 |
mydoc |
A document object |
x |
An string of R code encoding plot |
preprocessing |
A string of R code or "" |
left |
left margin |
top |
top margin |
width |
the width of the device. |
height |
the height of the device. |
units |
The units in which height and width are given. Can be px (pixels, the default), in (inches), cm or mm. |
res |
The nominal resolution in ppi which will be recorded in the bitmap file, if a positive integer. Also used for units other than the default, and to convert points to pixels. |
format |
plot format |
... |
additional arguments passed to png() |
a document object
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.