We needed a customized version of ggplot2's print.ggplot2
,
because we need to build plots from the intermediate results of
ggplot_build
rather than from a gg
object.
1 | plot_ggplot_build(b, newpage = is.null(vp), vp = NULL)
|
b |
A list resulting from |
newpage |
draw new (empty) page first? |
vp |
viewport to draw plot in |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.