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

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

This is a plot similar to the plot on p. 634 of the 27_Obtober_2006 "Science" 
magazine (volume 314).

In this example, I generate random data of the desired distribution
to make it look like the plot in Science magazine, but in your case
you would (probably) be using real data instead.

In the plots themselves, I "overlay" a needle plot (what looks like 
little bars) with a smooth-interploated line (interpol=sm35) plot.

I create each of the 4 charts separately, and then I "greplay" them
into a custom "proc greplay" template so they are overlapping.

I use alpha-transparent colors (new 9.3 feature) so you can see 
the plots behind the plots.

I'm not sure exactly how "useful" a plot like this is, but hey,
if they had one in Science magazine, then I felt compelled to 
show how to do this kind of overlaid plot with SAS/Graph :-)


Back to Samples Index