imager (version 0.45.8)

capture.plot: Capture the current R plot device as a cimg image

Description

Capture the current R plot device as a cimg image

Usage

capture.plot()

Arguments

Value

a cimg image corresponding to the contents of the current plotting window

Author

Simon Barthelme

Examples

Run this code
cimg.limit.openmp()
##interactive only:
##plot(1:10)
###Make a plot of the plot
##capture.plot() %>% plot 

Run the code above in your browser using DataLab