devNew
From R.utils v1.7.5
by Henrik Bengtsson
Opens a new device
Opens a new device.
Usage
devNew(type=getOption("device"), ..., aspectRatio=1, par=NULL, label=NULL)
Arguments
- type
- A
character
string specifying the type of device to be opened. This string should match the name of an existing devicefunction
. - ...
- Additional arguments passed to the device
function
, e.g.width
andheight
. - aspectRatio
- A
numeric
ratio specifying the aspect ratio of the image. See below. - par
- An optional named
list
of graphical settings applied, that is, passed topar
, immediately after opening the device. - label
- An optional
character
string specifying the label of the opened device.
Value
- Returns what the device
function
returns.
Aspect ratio
The aspect ratio of an image is the height relative to the width.
If argument height
is not given (or NULL
), it is
calculated as aspectRatio*width
as long as they are given.
Likewise, if argument width
is not given (or NULL
), it is
calculated as width/aspectRatio
as long as they are given.
If neither width
nor height
is given, or if both
are given, then aspectRatio
is ignored.
See Also
devDone
() and devOff
().
For simplified generation of image files, see devEval
().
Community examples
Looks like there are no examples yet.