gggrob | R Documentation |
Get the grid.draw-able ggplot grob The output from ggplotGrob can not be directly used in grid.draw, the position can not be set. This function extracts the gTree from the ggplot grob.
gggrob(p, void = TRUE, nolegend = TRUE)
p |
A ggplot object |
void |
If TRUE, the theme_void will be added to the ggplot object |
nolegend |
If TRUE, the legend will be removed from the ggplot object |
A gTree object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.