Click here to see the SAS code.
Click here to see the 2010 plots.
Click here to see the 2009 plots.
Click here to see the 2008 plots.
Click here to see the sas code used to import the data.
Click here to download the sas dataset.
---------------------------------------------------------------
Note that this example is included in the book SAS/Graph: Beyond the Basics,
and all the 'tricks' used to create it are described in great detail!
---------------------------------------------------------------
I got all the mpg data (2010-1984) from:
fueleconomy.gov
I save the csv data as an xls file, and then I import it into a sas
dataset using SAS/Access to PC Files.
I use "ods htmlpanel" to tile multiple graphs side-by-side on the
same web page.
I use gplot's html= option to encode an html href= drilldown for
each plot marker, to launch a google search for that vehicle,
so you can easily find pictures and more info about the cars.
Back to Samples Index