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

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

Forbes 400 Richest Americans, 2012

I copy-n-pasted the data from the following website:
http://www.forbes.com/forbes-400/list/#page:1_sort:0_direction:asc_search:_filter:All%20industries_filter:All%20states_filter:All%20categories

And then wrote some SAS code to read in the data (it was a little tricky, since 
different fields were on different lines), and then used SAS/Graph to do a 
bar chart, a scatter chart, and a geographical map.

The bar chart is sorted in descending order, and is very wide so you can see
the individual bars, and the bars are color coded so you can see how many 
10-billion $ the people have.

In the scatter plot, I used 'pointlabel' to selectively label some of 
the outliers.

In the geographical map, I add html mouse-over text to the dots, and 
where there are multiple people living in the same location, I show all
their names in the mouse-over text (although the web browsers seem to 
have a limit of how much text they can display - see for example New York).
When you click on the map markers, it takes you to the Forbes page showing
all the people in that state.

Back to Samples Index