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

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

SAS/Graph imitation of a graph from this blog:
http://jpbi.blogspot.com/2007/07/viewing-project-data-new-options.html

...that blog was even mentioned favorably in Stephen Few's blog:
http://www.perceptualedge.com/blog/?p=145


My Improvements in the SAS/Graph Version:
----------------------------------------
My grid boxes are all the same size (avoids area size bias).
My chart has a legend, letting you know color bins are quintiles.
My chart has html mouse-over charts to see the actual data values.
I only use 5 shades of each color, because the human eye has trouble distinguishing more.
I keep the week & year numbers outside the grid, so they're not confused with data.

I loop through the data numerically, building a calendar/week grid
which I then use "proc gmap" to plot.

The labels to the left and top of the grid are annotated text.

I use "proc rank" to calculate the quintile of each data point,
and also (separately) calculate the quintile of each point in the totals row.
I add an offset to the totals' quintiles, so they get different range of colors
than the normal data.

Back to Samples Index