Click here to see the SAS code.
Click here to see the example.
Click here to see some sample data.
---------------------------------------------------------------
This is a variation of the allergy calendar chart found in 'democd14'.
This one allows you to get a more side-by-side comparison of the
data from each year, linearly - but to do this, the graph is *very*
wide, and you have to scroll left/right. Each month is grouped by
a heavy/dark black outline (you can easily see the "leap year's"
where February has an extra day :)
Alternatively, the code could be rewritten to have the day-of-year
axis go up/down the page to facilitate easier scrolling, but I think
it's more intuitive to have the days go left/right.
As with the previous version, this uses SAS/Graph "proc gmap", and
each "day" in the calendar is a map area with it's own unique map id.
Each day has an html charttip, so you can mouse over it to see
exactly what day it was (and a drilldown could be added, to get
more detailed data, or to view a different graphic, etc).
This size chart could handle several more years of data.
If you need to add *many/many* more years of data, you might
increase the "ypixels" to make the graph taller and give you
more room (if you do that, you might need to adjust the font
sizes also though).
Back to Samples Index