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

I had seen a plot like this on the Census website, and I thought 
it would be a good one to try to imitate using sas/graph (a 
challenging chart, but do-able).  I later found out that that 
the census had used sas to create their chart - how ironic! :)

Basically, I sort my data by the average travel time, assign
a numeric rank, and then so a scatter plot.  I use a user-defined
format (created from the data) so that the numeric ranks print
as the desired state name.

Also, on each marker, I annotate a line across it, and then 
annotate a little tail at each end of the line (making it look
kinda like a spaceship fighter flying right at you ;)
The dot/marker represents the average time, and the annotated
bar represents the upper & lower bounds.  I use gplot's html=
option to specify a variable containing the html title= 
charttip/flyover-text, so you can mouse over the markers 
and see detailed info about the values that marker represents.


Back to Samples Index