dev_open: open device for plot

View source: R/write_fig.R

dev_openR Documentation

open device for plot

Description

open device for plot

Usage

dev_open(
  file = "Rplot.pdf",
  width = 10,
  height = 5,
  res = 300,
  use.cairo_pdf = FALSE
)

dev_off()

Arguments

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 ppi 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 ppi to set the size of text and line widths.

use.cairo_pdf

This parameter is for pdf type. whether to use grDevices::cairo_pdf? cairo_pdf supports self defined font, but can not create multiple page pdf.


rpkgs/Ipaper documentation built on March 24, 2024, 3:09 p.m.