imager (version 0.42.7)

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

Examples

Run this code
# NOT RUN {
##interactive only:
##plot(1:10)
###Make a plot of the plot
##capture.plot() %>% plot 
# }

Run the code above in your browser using DataCamp Workspace