View source: R/copyToClipboard.R
copyToClipboard | R Documentation |
Copies then content of a ggraphics widget to the clipboard
copyToClipboard(g)
g |
the ggraphics widget |
The content of the ggraphics widget on the clipboard, ready to paste
w=gWidgets2::gwindow(visible=FALSE) gg=gWidgets2::ggraphics(cont=w) gWidgets2::visible(w) <- TRUE graphics::hist(rnorm(2000)) copyToClipboard(gg) # Paste somewhere!
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.