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/oog/info/wohdp/diesel.asp
http://www.eia.gov/oog/ftparea/wogirs/xls/psw18vwall.xls
And imitating/enhancing graph from here...
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