| grid.cap {grid} | R Documentation |
Capture the current contents of a graphics device as a raster (bitmap) image.
grid.cap()
This function is only implemented for on-screen graphics devices.
A matrix of R colour names.
Paul Murrell
dev.capabilities to see if it is supported.
## Not run:
dev.new(width=.5, height=.5)
grid.rect()
grid.text("hi")
cap <- grid.cap()
dev.off()
grid.raster(cap, width=.5, height=.5, interpolate=FALSE)
## End(Not run)