Click here to see the SAS code.
Click here to see the example.
This example probably falls into the category of...
"I bet you didn't know sas could be used for *that*!"
Note that this example only uses hypothetical/contrived data!
This is *not* real data!
First, I subset the countries-of-interest out of the sas/graph
maps.world data set.
Then, I create a sas/graph annotate data set containing the
longitude/latitude locations of the missile sites, targets, etc.
I use the annotate "pie" function to draw the circles, and the
red/white "target" areas are created using 4 90-degree pie
slices, alternating the color between red & white.
One "trick" I do with the annotated dots is that I make the
dots-of-interest (ie, the ones that are connected by the
paths) larger than the others, so they are more easily visible).
I use annotated lines to connect the sites of interest, and show
the path the missiles could be transported. I annotate some
text beside the lines, showing the amount of time required to
traverse that path (also, mouse over these labels to see the
name of the start and end points).
I combine the map and the annotate, and then I "gproject" them
gotether (this guarantees that the coordinates will line up
correctly on the map).
I then separate the map from the annotate, and use sas/graph
"proc gmap" to draw the map, with the annotated dots on it.
I use gmap's "html=" option to specify a variable that has
the country names in html title= charttip/flyover-text tags, so
when you mouse over the countries you see their names.
Similarly, I use the annotate data set's "html" variable to
specify html title= charttip/flyover-text tags for the annotated
dots, indicating their name, and their "role" (hide site, launch
site, target, etc).
And, last-but-not-least, I annotate a picture of a missile launcher
in the bottom/left corner.
Back to Samples Index