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

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

See my blog for more information about this graph!


This is a very-close imitation of a graph I found out on the web.
The data is not real, but is as close as I could eyeball/estimate
it by reading the value off of their graph.

It's actually a very simple gplot, with 2 lines overlaid
(using the built-in 'overlay' option in gplot).

The legend is brought inside the axis frame by using the 
position=(inside) in the legend statement.

The text in the top/left inside is created using 'notes'
(rather than annotate).

On the x-axis, I rotate the date values using the value=(a=90)
in the axis statement, so they will fit better.  And on the y-axis
I rotate the axis label so it prints sideways.

As a note of interest, the dashed refline indicates the time at which
the weather station "broke" and stopped recording data - neat little
bit of trivia :)

Back to Samples Index