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

I created an example for this, because I thought it was interesting,
and also data that most/all sas users could relate to - ie, where did
people come from, to SUGI 26.

The data was somewhat "dirty", so there could be some error in this map.
If the data were collected specifically for the purpose of populating 
this map, we could have had a separate field for US zipcode, but 
the way I received this data the 'address' was more or less a freehand
field, and I took quite some liberty about parsing out the part that
I thought was the zipcode -- good enough for a proof-of-concept demo
though! :)

Here are some of the tricks needed for this map...

Make sure to use an unprojected map, rather than maps.us - that's so
you can therefore annotate the dots (by the zipcode long/lat) with this
map (maps.us is already "projected" and there is no easy way to reliably
annotate dots by zipcode location onto it).

Back to Samples Index