This Treemap was created using SAS/Graph proc gmap, and
a custom map data set created using some macros I wrote.
Click here to see details on how the macros work.

Click here to see the SAS code that calls the macros.
Click here to see the example.

This example uses data from the RM Review magazine's visualization contest (Spring 2005).
I took the wine sales by region, and made up a distribution by wine type,
and then plotted the data using my Tree Map.

I tried to select colors that somewhat corresponded to the actual 
color of the wine.  It was difficult to pick colors that looked somewhat
like the wines, but that were also different enough to be easily 
visually distinguishable.  (this would have been easier if there were
only 2 wine categories ... white and red :)

One noteworthy thing is the legend placement - it is difficult to get the
legend into this exact position (without also having a gap to the left of
the map).  I had to place the legend top/center, and then use an 'offset'
to move it to the left.

Also, what looks like the title is really annotated text labels.

I use hollow/empty text to label the regions on the treemap, so 
the labels do not obscure the data/boxes.  This is the 'swissbe'
(swiss bold empty) sas/graph software font.

Back to Samples Index