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 is kind of a neat example of "Eating your own cooking" :)
I used the Treemap to visualize the disk space used by the different
files & directories under !sasroot on a unix sas install.

This is a 2-level Treemap, with the subgrouping level showing the 
top-level directory name under !sasroot, and the individual boxes representing
the files and directories under those top-level directories.
The size & color of the boxes both represent the amount of disk 
space occupied by the files & directories.

Notice that there are a *lot* of small boxes, and therefore it took
the macro a *long* time to calculate the geometry of this Treemap
(maybe 10 or 20 minutes, if memory serves me correctly).  To do 
a similar map again, I would recommend summarizing the small boxes
into an "other" category, like is automatically done in a pie chart,
which would greatly speed up the creation of the Treemap.

One interesting thing - in the 'sashelp' directory, there was a large
'draft' catalog ... I originally thought maybe this was some 
preliminary/draft file that was accidentally left there (and was
wasting a lot of disk space).  After checking with the developers,
I found that this file was intentional (it contains some special
fonts :)

Back to Samples Index