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

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

This is a SAS/Graph imitation/enhancement of a graph on this page:

   http://zedgraph.org/wiki/index.php?title=Multi-Y_Demo

I use a SAS do-loop and equations to generate/calculate the data.

I use "proc gplot" and a "plot" and "plot2" to plot the first 
two lines, corresponding to the left & right axes.

For the outer left & right axes, I use annotate, and scale these 
axes on min & max values which I hard-code in macro variables.
I also control the color of the plot-lines & axes using 
macro variables (so they're easy to change in 1 place).

And, one enhancement over the original - I added html mouse-over
hover-text to the plot markers, so you can hover your mouse over
them and see the actual data values.

Back to Samples Index