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

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

/*
Using Data from here...

http://www.eia.doe.gov/
http://www.eia.gov/dnav/pet/pet_pri_gnd_dcus_nus_w.htm
Regular gasoline, conventional areas:
http://www.eia.gov/dnav/pet/hist/LeafHandler.ashx?n=PET&s=EMM_EPMR_PTE_NUS_DPG&f=W
Download Data (XLS File) link:
http://www.eia.gov/dnav/pet/hist_xls/EMM_EPMR_PTE_NUS_DPGw.xls

And imitating gasoline graph from here, but for gasoline...
http://www.cssi-consulting.com/images/graph.jpg
*/

I import the spreadsheet into SAS using SAS/ACCESS to PC Files.

I create a variable to show the various price ranges (by 50-cent ranges).
I do a 'proc gplot', and use the 'needle' interpolation.
I color the needles using "plot y*x=foo" syntax, where foo is the price-range.
And I annotate an image behind the graph, within the axes.

Back to Samples Index