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

This example is basically pretty simple, but shows off a 
really neat capability :)

I just draw a US map, and hilight the state of interest.
I then subset that state of interest out of the county map data set,
and then apply an offset to the x/y location, and resize it a bit
(so that it is to the right of the US map).  Since I'm pretending 
like both maps are part of the same map, I add a fake/missing 
'county' variable to the US map.

And last, I create an annotate data set to use as the 'exploded'
funnel and backdrop.  It's a simple rectangle behind the county map,
and I do a triangle from the corners of the county rectangle, and
connect them to the middle of the state that is being 'exploded'.

I use gmap's "html=" option to specify the variable I have coded
with html title= charttip/flyover-text which shows the state and/or
county name when you mouse over the areas.

When you run this code, you can easily change the exploded state
by editing the 'explode' macro variable at the top of the program:

   %let explode=MI;


This example is even "neater" in my sas/intrnet dynamic version.
You can try out that version if you have access to the sas internal
web.
You can click on any state, and it will dynamically "explode" that state,
and draw the county map.


Back to Samples Index