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

In this example, I start with the city name in my data set,
and I merge in the x/y location of the cities from the maps.uscity
data set (these locations are already "projected" so they should
like up correctly with the data set).

I then convert my dataset into an annotate data set, by adding
pie slices using the 'pie' function.  The 'rotate' is equal to the
number of degrees each pie slice should be.  I also color-code the
pie slices, and show what the colors stand for in the annotated legend.

I also annotate an image of a cottonball, so people will know 
at-a-glance that this map shows something about growing cotton :)

Back to Samples Index