Capture device output as a raster image
dev.capture captures the current contents of a graphics device
as a raster (bitmap) image.
dev.capture(native = FALSE)
- Logical. If
FALSEthe result is a matrix of R color names, if
TRUEthe output is returned as a
nativeRasterobject which is more efficient for plotting, but not portable.
Not all devices support capture of the output as raster bitmaps. Typically, only image-based devices do and even not all of them.
NULLif the device does not support capture, otherwise a matrix of color names (for
native = FALSE) or a
native = TRUE).
Looks like there are no examples yet.