Devices
There can be multiple
devices of which only one can be active. One device is the
null device which is always open.
Devices are associated with a name (such as X11 or postscript) and a number in the range of 1 to 63 (the null device being 1).
When used
interactively, R initiates a
graphics device driver which in turn opens a
graphics windows where the graphics are displayed. The commands that are (automatically) invoked are
X11()
on
Unix,
windows()
on
Windows and
quartz()
on Mac.
New devices can always be opened with
dev.new()
.
Other functions are dev.cur
, dev.list
, dev.next
, dev.off
, dev.set
.