Tuesday, November 29, 2011

Creating Step Charts in R

I'm determined to boost my programming skills - this looks like the only way to create truly customised data visualisation. So my weekend projects tend to consist of many hours tapping away at the keyboard until I get something I'm happy with.
Today I've created a chart showing the price of a postage stamp in New Zealand. Unlike most price-by-time charts, postage stamps suit step charts, because prices are fixed for long periods between step changes.
Now the chart below might not look like rocket science, but bear in mind that neither Excel nor Illustrator has a built-in step chart type, as Nathan Yau points out in his data viz book "Visualize This". So to create this in something like Excel, you would have to use some kind of work-around.
The downside is that to use the wider array of chart types available in R (free statistics software), you need to get your hands dirty with a wee bit of programming. Since that's what I'm trying to learn, it all works out quite nicely!

No comments:

Post a Comment