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

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

In this example, I was trying to do a SAS/Graph version of the following graph:

http://appealforcourage.org/misc/images/iraqVietnamGraph.gif





The hardest part was finding the same data.
I couldn't find the exact same data over the exact same range 
of dates (in particular, all the monthly Vietnam data I could 
find started in January 1966 (rather than August 1964).
Also, it wasn't obvious exactly what kinds of deaths the 
original plot included in it's numbers (killed in action?
combat deaths? non-combat deaths? etc)


The data I used came from the following two sources:

Iraq: http://www.globalsecurity.org/military/ops/iraq_casualties.htm
Vietnam: http://members.aol.com/warlibrary/vwc24.htm


With the trouble I had finding *exactly* what data had been used in the original graph,
I decided to try to construct my graph in such a way that people looking at it
would not have the same problem.

I set up lots of "drilldowns" in my graph, to let the user see the actual 
data sources.  If you click on the red plot markers along the line for the Iraq war,
it will take you to the list of all the names of those killed during that month.
If you click on the blue plot markers along the line for the Vietnam war, 
it will take you to the master data list showing all the casualty data for that war.

Also, I use the htmllegend= option to add drilldown to the legend, so you can
click on the Iraq or Vietnam markers in the legend to drilldown to the 
webpage containing the data I used.

Also, I show the tables of data under the graph, with links in the 3rd title showing
the page containing the data source.

Oh! - And you can hover your mouse over the plot markers to see the month/year and
number of casualties for that plot marker!

Back to Samples Index