capture.plot {imager} | R Documentation |
Capture the current R plot device as a cimg image
capture.plot()
a cimg image corresponding to the contents of the current plotting window
Simon Barthelme
##interactive only:
##plot(1:10)
###Make a plot of the plot
##capture.plot() %>% plot