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

This is an example showing how I created a very specific 
normal-distribution curve graphic someone was needing.

First I generate some random data using the 'rannor()' function.
Then I summarize the random data, doing a summary count of the 
number of y's for each x.  Then I plot this summary data, 
which gives me the curve I wanted.

I then annotate colored 'bars' for the yellow, red, and green areas.
I also use annotate for the dashed-lines, and the 'U' and 'L'
labels under the lines.

For the special 'mu' and 'sigma' characters in the x-axis, I
use the 'symbol mt' font (which we ship with SAS), and hardcode 
those characters in the axis label tickmarks.  

Scroll down, and you'll see a slightly different version of
the same chart.

Back to Samples Index