rCharts has an undocumented function called take_screenshot
that uses CasperJS (which in turn uses PhantomJS to take screenshots of rCharts created visualizations on a given html page.
For example, I forked the example you provided, renamed it as a html file, which you can view here.
I ran rCharts::take_screenshot('http://rcharts.io/viewer/?7063641')
, which results in the following screenshot. The take_screenshot
function uses system
commands, and work well on a Mac. I have not tested it on Windows, so YMMV.
NOTE: You will need to install the dev
branch for this feature.