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

View source: R/cimg_class.R

capture.plotR Documentation

Capture the current R plot device as a cimg image

Description

Capture the current R plot device as a cimg image

Usage

capture.plot()

Value

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

Author(s)

Simon Barthelme

Examples


##interactive only:
##plot(1:10)
###Make a plot of the plot
##capture.plot() %>% plot 

imager documentation built on May 29, 2024, 1:38 a.m.