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

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

This is a sas/graph imitation/enhancement of the following
Census Map

This example uses the new v9.2 maps.us, which is a little different
from the previous maps.us -- it includes Puerty Rico, and Alaska
is projected a little differently (looks skinnier).

What looks like a title is actually annotated text (because titles
can't extend into the map area (ie, come down past Alaska).

The legend is in a custom position via 'offset', and the text 
and lines on the left-side of the legend are custom annotate.

The labels for the states are created using the maps.uscenter
projected x/y locations, utilizing some (but not all) of the 
label positions where ocean='Y'.  For the labels of the states
over the ocean, I use a colored background (carefully using the
same color as the actual map/states).

I draw boxes around the outlying states using annotate move/draw.
(Might have been easier to use annotate function='bar').

I annotate the uscensusbureau image at the bottom (since I'm trying
to imitate their map in this proof-of-concept).

Each state has a charttip & drilldown - the drilldown goes to 
the actual Census page for that state.  The uscensusbureau logo
has a drilldown to the top-level census site.

And, a subtle touch you might not have noticed - I added a subtle
gray drop/shadow behind the map (look along the east & south edge 
of the map, and you'll see this thicker/shadow outline).

Back to Samples Index