Query the capabilities of the current graphics device.
dev.capabilities(what = NULL)
a character vector partially matching the names of the
components listed in section ‘Value’, or
lists all available capabilities.
A named list with some or all of the following components, any of which may
logical: Does the device support semi-transparent colours?
character: Does the device support
(semi)-transparent backgrounds? Possible values are
"fully" (only full transparency) and
(semi-transparent background colours are supported).
character: To what extent does the device support
raster images as used by
grid.raster? Possible values
"non-missing" (support only for arrays without any missing
logical: Does the current device
support raster capture as used by
character: Which events can be generated on this device?
Currently this will be a subset of
"MouseMove", "MouseUp", "Keybd"), but other events may be
supported in the future.
The capabilities have to be specified by the author of the graphics
device, unless they can be deduced from missing hooks. Thus they will
often by returned as
NA, and may reflect the maximal
capabilities of the underlying device where several output formats are
supported by one device.
Most recent devices support semi-transparent colours provided the graphics format does (which PostScript does not). On the other hand, relatively few graphics formats support (fully or semi-) transparent backgrounds: generally the latter is found only in PDF and PNG plots.
getGraphicsEvent for details on interactive events.