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

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

See my blog for more information about this graph!


This example has *so* much potential, and works *so* well in sas/graph!

With all the GPS satellites orbiting the earth, making it easy to 
determine your exact longitude/latitude position with small/inexpensive
GPS tracking devices, I think there will be a *huge* demand for flexible
software that will let you show this type of information on a map,
in a variety of ways.

This could be useful for all sorts of things:

 o Tracking endangered wildlife.
 o Tracking delivery truck locations.
 o Tracking rental car travel paths.
 o Tracking convicts on parole or under house-arrest.
 o Tracking ships and submarines.
 o Tracking stolen cars that have gps transmitters.
 o Tracking storms.
 o Etc, etc, etc.

I use several neat features to generate this map.

I use "proc gproject" to clip out just this rectangular region of the map.
I use annotate to draw the long/lat gridlines and labels.
I use annotate's "html" variable to add "title" charttip/flyover-text to
the turtle location markers.
I also use annotate's "html" variable to add "href" drilldowns to the
turtle location markers, so when you click on the marker it will take
you to a mapquest map centered on that exact long/lat location.
I use "proc gmap" html= option to add "title" charttip/flyover text to
the map areas, so you can see the county name when you mouse over the
land areas.
I annotate a picture of a turtle, and add title text and href drilldown
so you can go to a website that tells about sea turtles.

The turtle marker/dots are very small annotated solid-colored pies.
They are connected by annotated blue lines.  And, I annotate the words
'start' and 'end' at the first and last markers.

Below the map, I use "proc print" to show a table of all the location data.
ODS HTML automatically formats the table nicely for me.

Back to Samples Index