base2grob | R Documentation |
convert base plot to grob object
base2grob(x, envir = parent.frame())
x |
expression or formula of base plot function call, e.g. expression(pie(1:5)) or ~plot(1:10, 1:10); or a function that plots to an R graphics device when called, e.g. function() plot(sqrt) |
envir |
environment to search variables |
grob object
Guangchuang Yu
base2grob(~plot(rnorm(10)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.