record_polaroid | R Documentation |
For plot types that don't have a special print method, use this function to capture what has been printed to the current graphics device and save it using the current camcorder settings
record_polaroid()
No return value. Used for the side effect of capturing the current graphics device and saving it to the set directory from gg_record.
library(grid) gg_record(device = "png", width = 10, height = 8, units = "in", dpi = 320) ## make a plot using grobs grid.draw(rectGrob(width = 2, height = 2, gp = gpar(fill = "green"))) grid.draw(textGrob("Hello world")) record_polaroid() gg_stop_recording()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.