Redraw a recordedplot, grid, trellis, or ggplot2 plot.

Description

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.

Usage

1
redrawPlot(rec_plot)

Arguments

rec_plot

the plot object to redraw

References

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.

See Also

redraw.recordedplot

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.