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


See my blog for more information about this graph!

I got this idea from the following teacher work-plan ...

I used "Code-Samuel"s data, but tried to make a few improvements in the graph itself...

Instead of making all the bars green, I colored the bars the same color 
as the M&M they represent.

I sorted the bars in descending order, so it's easier to see which colors
are the most and least frequent.

I added labels for both the frequency count *and* the percent.

And, I made the chart 2d, rather than 3d (this makes it much easier
to read, and easier to place the labels).

I deleted the color legend (since each bar already has a label under it).

I deleted the color axis label, since it was already intutitively obvious.

Back to Samples Index