I was wondering if there is a way to save a chart generated using rCharts to a file (as an image). In particular, I want to save a map generated using 'leaflet' to a file.
For example, a sample map can be generated using:
require(rCharts)
L1 <- Leaflet$new()
L1$set(width = 1600, height = 800)
L1$setView(c(0,0), 3)
L1
This opens up a map in the browser. Now, I can right click on the map and select Save Image, but this saves only a single tile of the map. I want to save the whole map to file, and automate it using a bit of code, (rather than manually clicking and saving), because I need to run the process in a loop. Any suggestions?