Click here to see the SAS code.
Click here to see the example.

---------------------------------------------------------------

I got the data from:
http://www.taxfoundation.org/files/variousstaterates-20070626.xls
(I modified the spreadsheet and took out the special note symbols,
so it it just raw numbers, and saved in taxes.xls -- the original
data is in taxes_orig.xls) and then impoted it into sas.

I then plot the data using "proc gmap", and subset it to just
show the 2006 data using a 'where' statement when I specify
the data set ...

   proc gmap map=maps.us data=taxes (where=(year=2006));

I specify "levels=5" so that the 1/5'th of the states with the
lowest values are in the dark blue color bin, the 1/5'th with
the highest values are in the red color bin, etc.

I add html charttips to each state (using gmap's html= option),
and I add a drilldown so that the original data spreadsheet is
shown if you click on any state.

Back to Samples Index