Description Usage Arguments Details Note Examples
General purpose graphics devices saved to files, where the file type is determined by the file name
1 | file_device(filename, width = 5, height = 5, res = 600, ...)
|
filename |
the name of the output file. Can be a path
but must contain a file extension at the end (e.g., |
width |
the width of the device, in inches. Defaults to 5 |
height |
the height of the device, in inches. Defaults to 5 |
res |
the resolution of the device, in pixels per inch. Defaults to 600. Has no effect if the extension is |
... |
optional arguments passed to the graphics device generating function (e.g., |
Accepted file extensions include:
".pdf"
(calls pdf
)
".png"
(calls png
)
".bmp"
(calls bmp
)
".jpg"
(or ".jpeg"
, both call jpeg
))
".tif"
(or ".tiff"
, both call tiff
))
".eps"
(calls cairo_ps
)
A call to dev.off
is still required after the plotting code (see examples).
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.