open_graphics_device | R Documentation |
open_graphics_device
takes a file name and opens a graphics
device based on the file suffix. Defaults to pdf if no match is found.
If the file suffix is .svg then open_graphics_device
tries to
use the svglite
package. If svglite is not installed, it uses the builtin svg
open_graphics_device(filename = "plot.pdf", ...)
filename |
character, the filename to use |
... |
Arguments passed on to the graphics device |
TRUE invisibly
open_graphics_device(filename = 'plot.eps')
open_graphics_device(filename = 'plot.eps', width = 6, height = 5)
open_graphics_device(filename = 'plot.png', width = 640, height = 480)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.