This function redraws the plot represented by
rec_plot. It can redraw grid/trellis/ggplot2/etc plots, as well as
recordedplot objects. For
recordedplot objects it acts as a wrapper around
replayPlot with memory tweaks to fix native symbol address errors when the recordedplot was loaded from an rda/rds file.
the plot object to redraw
Thanks to Jeroen Ooms https://stat.ethz.ch/pipermail/r-devel/2012-January/062973.html, JJ Allaire https://github.com/rstudio/rstudio/commit/eb5f6f1db4717132c2ff111f068ffa6e8b2a5f0b, and Gabriel Becker.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.