dev_open | R Documentation |
open device for plot
dev_open(
file = "Rplot.pdf",
width = 10,
height = 5,
res = 300,
use.cairo_pdf = FALSE
)
dev_off()
file |
file path of output figure |
width |
the width of the device in inches. |
height |
the height of the device in inches. |
res |
The nominal resolution in \abbrppi which will be recorded in the bitmap file, if a positive integer. Also used for units other than the default. If not specified, taken as 72 \abbrppi to set the size of text and line widths. |
use.cairo_pdf |
This parameter is for pdf type. whether to use |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.