A Variety of Area Charts with R
From the basic area chart, to the stacked version, to the streamgraph, the geometry is similar. Once you know how to do one, you can do them all.
Back in 2008, The New York Times, with the help of Lee Byron, published a streamgraph that showed the ebb and flow of box office receipts. The graphic was based on Byron’s previous work with last.fm listening habits, and it was well-received by many, while others argued that it was not as accurate as it could be. Byron, along with Martin Wattenberg, later argued in their paper that while some accuracy is sacrificed, the balance of aesthetics and traditional chart-making make for a worthwhile chart.
In this tutorial you learn what goes into the streamgraph and end up with a simple function that you can easily use with other datasets.
To access this full tutorial and download the source code you must be a member. (If you are already a member, log in here.)
Gain instant access to step-by-step visualization courses and tutorials for insight and presentation — all while supporting an independent site. Source code and data is included so that you can more easily apply what you learn in your own work.
Members also recieve a weekly newsletter, The Process, which looks more closely at the tools, the rules, and the guidelines and how they work in practice.
See samples of everything you gain access to:
More Tutorials See All →
Working with Line Maps, the Google Places API, and R
A frequent challenge of visualization is behind the scenes, to get the data and to mold it into the format you need. Do that. Then map.
Annotating Charts in R
Let the data speak for itself they say. That doesn’t work a lot of the time, and when that happens, you need to explain.
How to Make Your Own Twitter Bot – Python Implementation
Following up on my post last week about using Twitter …