dev.capture {grDevices}
Description
dev.capture captures the current contents of a graphics device as a raster (bitmap) image.
Usage
dev.capture(native = FALSE)
Arguments
- native
- Logical. If
FALSEthe result is a matrix of R color names, ifTRUEthe output is returned as anativeRasterobject which is more efficient for plotting, but not portable.
Details
Not all devices support capture of the output as raster bitmaps. Typically, only image-based devices do and even not all of them.
Values
NULL if the device does not support capture, otherwise a matrix of color names (for native = FALSE) or a nativeRaster object (for native = TRUE).
Documentation reproduced from R 3.0.1. License: GPL-2.
