devOptions(type=c("bmp", "cairo_pdf", "cairo_ps", "eps", "jpeg", "jpeg2", "pdf", "pictex", "png", "png2", "postscript", "quartz", "svg", "tiff", "windows", "x11", "xfig"), custom=TRUE, special=TRUE, ..., reset=FALSE)
TRUE
, also the default settings specific to this
function is returned. For more details, see below.logical
. For more details, see below.TRUE
, the device options are reset to R defaults.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 knownDevices <- eval(formals(devOptions)$type) fields <- c("width", "height", "bg", "fg", "pointsize") opts <- sapply(knownDevices, FUN=function(type) { devOptions(type)[fields] }) rownames(opts) <- fields opts <- t(opts) print(opts)