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

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

I got us_employment.xls from near the bottom of this page:

   http://barrdear.com/john/tag/weekly-hours/

Specifically, ...

   http://barrdear.com/john/2009/02/11/perspective-comparing-recessions/


I'm imitating the following graph:

   yoy_change_in_hours.png


Technical Details:

I used SAS/Access to read the data directly from the spreadsheet.
I use "proc gplot" to overlay the multiple line plots.
I use a title2 statement to write my own custom "legend".
I use plot markers (dots) at each data point along the line, because I think
this helps you visually tell more about the rate-of-change in the line 
(by seeing the distance between the dots), and also it allows me to 
encode html charttips, so you can hover your mouse over the dots to see
the details.
I also re-worked the time axis a little, to only show the year, rather than
the year & month, and added a reference line for every decade.
And I made the graph a bit wider, since it shows such a long time-series.

Back to Samples Index