Pages

Wednesday 6 January 2010

NOTE: Marimekko - Using PROC GAREABAR in V9

I stumbled across an interesting new style of chart the other day (it was new to me, it may not be new to you). The Marimekko chart shows three levels of data within a simple 2D representation. Indeed, by stacking the bars in the chart, one can achieve four levels of data. I found the chart in a (long) article explaining how to create Marimekko charts in Excel; I was pleasantly surprised to find that SAS has a PROC (since V9) for creating these charts: PROC GAREABAR.

Rob Allison shows a good example of usage of these charts on his web site. Rob takes a USA energy chart that was featured in the Junk Charts blog. The chart is successful in demonstrating the prevailing dependance on oil for transport and coal for electricity. Of course, Stephen Few has thoughts on the strengths and shortcomings of Marimekkos. He offers his thoughts in A Design Problem on his blog. Briefly, he agrees that the chart has merit and can communicate useful messages, but he concludes that the better option is to provide multiple, simpler charts on one canvas. Of course, SAS can do this too, so it's good to see that SAS practitioners can benefit from Stephen's advice.

Two points worth noting are:
  1. SAS V9.2 introduced some extra parameters to PROC GAREABAR. This includes the LEGEND option used in Rob Allison's code. To use Rob's code in V9.1, just remove the LEGEND option
  2. PROC GAREABAR currently only works with two graphics devices: ACTIVEX and ACTXIMG
PROC GAREABAR offers a new set of opportunities for presenting your data and communicating its messages. I shall be sure to consider using it the next time I find myself doing some data visualisation.

The name Marimekko is derived from a style of clothing design made popular by the Finnish company of the same name.