devOptions(type=c("bmp", "cairo_pdf", "cairo_ps", "CairoWin", "CairoX11", "eps",
"jpeg", "jpeg2", "pdf", "pictex", "png", "png2", "postscript", "quartz", "svg",
"tiff", "win.metafile", "windows", "x11", "X11", "xfig"), custom=TRUE, special=TRUE,
drop=TRUE, options=list(), ..., reset=FALSE)
TRUE
, also the default settings specific to this
function is returned. For more details, see below.logical
. For more details, see below.list
of settings.TRUE
, the device options are reset to R defaults.drop=TRUE
and a single device is queries, a named list
is
returned, otherwise a matrix
is returned.
If a requested device is not implemented/supported on the current system,
then "empty" results are returned.
If options were set, that is, if named options were specified via
...
, then the list is returned invisibly, otherwise not.getOption("devOptions")[[type]]
option is modified. This means that for such options to be effective,
any device function needs to query also such options, which for instance
is done by devNew
().Also, for certain devices (eps, pdf, postscript, quartz, windows and x11), builtin R device options are set.
special
is TRUE
, then the 'width' and 'height'
options are adjusted according to the rules explained for
argument 'paper' in pdf
, postscript
,
and xfig
.# Tabulate some of the default settings for known devices
print(devOptions()[,c("width", "height", "bg", "fg", "pointsize")])
Run the code above in your browser using DataLab