Learn R Programming

imager (version 0.42.19)

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
##interactive only:
##plot(1:10)
###Make a plot of the plot
##capture.plot() %>% plot 

Run the code above in your browser using DataLab