copyToClipboard: copyToClipboard

View source: R/copyToClipboard.R

copyToClipboardR Documentation

copyToClipboard

Description

Copies then content of a ggraphics widget to the clipboard

Usage

copyToClipboard(g)

Arguments

g

the ggraphics widget

Value

The content of the ggraphics widget on the clipboard, ready to paste

Examples

 w=gWidgets2::gwindow(visible=FALSE)
 gg=gWidgets2::ggraphics(cont=w)
 gWidgets2::visible(w) <- TRUE
 graphics::hist(rnorm(2000))
 copyToClipboard(gg)
 # Paste somewhere!
 

PannetonB/inspectrar documentation built on Feb. 4, 2023, 1:57 p.m.