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 http://permalink.gmane.org/gmane.comp.lang.r.devel/29897, JJ Allaire https://github.com/rstudio/rstudio/commit/eb5f6f1db4717132c2ff111f068ffa6e8b2a5f0b, and Gabriel Becker.