Click here to see the SAS code.
Click here to see the shared SAS code (anno_box.sas).
Click here to see the example.

Note that this is a *bad* graph ... because, in effect, 
it is a bar chart, with the bars not starting at zero.
(And even with the blue line, the axis scale is somewhat
arbitrarily chosen.)


Everybody wants a bar & line plotted together!
The new "proc gbarline" is rapidly becoming more functional,
and will probably be the tool-of-choice in v9.2 and higher,
but in this example I'm using one of the many "tricks" to 
do the bar with line overlaid.

This is actually a "gplot" (not a bar chart at all).
The 2 axes come from the plot and plot2.  The bars are line
plots with symbol interpol=needle, and the needle lines are 
very thick (width=25) so they look like bars.

I use the a_anno1 and a_anno2 to annotate some text on the 
fake bars and a couple of the line markers.

I use my now-famous annotated axis/frame with the rounded 
corners to give the final touch of elegance :)

Back to Samples Index