Click here to see the SAS code.
Click here to see the example.
---------------------------------------------------------------
Let me preface this by saying I don't think these charts
are a particularly good way to display this data - I'm just
using this as an exercise, to see if I can do these charts
with sas/graph...
The original charts were here:
http://www.eyezberg.com/images/stories/flash_charts/animated_chart_samples.png
In the first chart, I use a subgrouped gchart vbar chart.
I use the 'outside=' to print the values outside the bars.
I use numeric values (1-4) for the seasons (so they'll be in the
desired order), and a user-defined format to make them print the
desired text.
I use annotate to do the color band behind the titles.
I use annotate to do the alternating color bands behind the bars.
In the 2nd chart, I use a subgrouped gchart hbar chart,
with similar annotate tricks as the first chart, except
it's a little harder to figure out the y-axis positions for
my alternating annotated color bands behind the bars.
The 3rd chart is a gplot scatter, with joined plot markers.
I use a windows font for the plot markers.
I position the legend inside the plot axes.
The last chart is a subgrouped gchart 'donut' chart.
While the other charts aren't "great" for this data, this
particular chart is *horrendous* :) First, some of the
temperatures are negative, and pie slices have to represent
a positive value (so I have to take the absolute value).
Then there are many more subtle problems I'll leave
for you to notice. In a nutshell, this is just the
*wrong* chart to use for this data.
On the same webpage (the originals), there was also a
bubble plot, with the bubbles sized based on the season.
Again - that makes no sense (so I didn't even reproduce
that in sas).
Back to Samples Index