Skip to content
Prev 45829 / 63421 Next

Minimal build of R ...

On May 3, 2013, at 12:52 PM, Gabriel Becker wrote:

            
This has been attempted quite a few times - literally by the canvas package (in generates JavaScript) and in more general terms by using SVG (this was way back when it was en vogue). The problem is that by design R plots lack the link between data and the objects drawn so you can only add a small amount of interactivity to very specific plots by hand-crafing the links or by trying to apply some heuristics, but it doesn't work in general. That's why all the web-baed interactive graphics typically do it the other way around - define JS-based primitives with interactions and build plots from this. You actually get nice interactive graphics, but you can't re-use R-based graphics (other than re-drawing it interactively, but that's another story).

Cheers,
Simon