Please note that this book is a work in progress, the equivalent of a pre-alpha release. All the code should work, because if it didn’t the site could not be built. But there is still a lot of work to do to explain the historical methods under discussion. Feel free to leave feedback as issues on the GitHub repository, or to e-mail me.
library(ggvis)

R to JavaScript libraries

There are many ways of making visualizations in JavaScript. The best and more powerful JavaScript library for this is D3.js, but there are many specialized libraries such as Leaflet.js for mapping. The key value of the JavaScript libraries is that they can include a kind of interactivity. There are a number of R libraries which will translate your graphics to JavaScript. This can be a quick way to get a visualization on the web, but it also often requires work in JavaScript. These libraries may appeal to you, but I usually find that it is sufficient to work in R unless I am going to make some kind of custom visualization in JavaScript.