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 (stimulus.sas)
Click here to see the example.

I guess the "neat" thing about this example is that I read the data directly 
from the Internet, using the relatively new SAS "filename url".



This is a SAS/Graph version of the tree chart created by Michael Grabell of ProPublica.
I originally saw his chart here:
http://www.propublica.org/special/stimulus-bill-treemap

And then found another version on "ManyEyes":
http://manyeyes.alphaworks.ibm.com/manyeyes/visualizations/stimulus-bill-where-the-money-would--5

I File->Saved the data from ManyEyes
http://manyeyes.alphaworks.ibm.com/manyeyes/datasets/stimulus-bill-where-the-money-would--5/versions/1
I saved it as stimulus.txt (which is a tab-delimited data file),
and then Imported it into an Excel spreadsheet,
and then I use SAS/Access to PCFileFormats to import it into SAS.


-----

Back to Samples Index