Interactive charts in R

Posted to Coding  |  Tags: ,  |  Nathan Yau

Interactive charts in R are still so-so, but if you don’t mind giving up some flexibility and just want something quick without having to learn a new language, there are a handful of options. RStudio highlights the highcharter package, which is a wrapper around the JavaScript-based Highcharts.

So the story goes that Torstein Hønsi, the founder and Chief Product Officer of Highcharts. was looking for a simple charting tool for updating his homepage with snow depth measurements from Vikjafjellet, the local mountain where his family keeps a cabin. Frustrated with the common flash plug-ins, and other proprietary solutions available at the time, he decided to build a standards-based solution of his own and then, of course, share it.

Write R. Get an interactive chart to export.

While we’re at it, you might also be interested in the R wrapper for Plotly, which is another JavaScript charting library, and htmlwidgets, which lets you work with JavaScript libraries within R (and highcharter makes use of).

Favorites

Years You Have Left to Live, Probably

The individual data points of life are much less predictable than the average. Here’s a simulation that shows you how much time is left on the clock.

Top Brewery Road Trip, Routed Algorithmically

There are a lot of great craft breweries in the United States, but there is only so much time. This is the computed best way to get to the top rated breweries and how to maximize the beer tasting experience. Every journey begins with a single sip.

Interactive: When Do Americans Leave For Work?

We don’t all start our work days at the same time, despite what morning rush hour might have you think.

Think Like a Statistician – Without the Math

I call myself a statistician, because, well, I’m a statistics graduate student. However, the most important things I’ve learned are less formal, but have proven extremely useful when working/playing with data.