Click here to see the SAS code.
Click here to see the example.
---------------------------------------------------------------
This example downloads an excel spreadsheet from the Internet,
and then imports a certain range of cells into a SAS data set.
Variables are renamed, so they will produce meaningful/useful
values once they are transposed. The stacking order of the
bars is controlled by assigning numeric values, and then using
a user-defined format so that those numeric values will print
as the desired text (in the legend).
The same colors & stack order were used, as was used in the graph
in the original report (p. 4):
http://data.newyorkfed.org/research/national_economy/householdcredit/DistrictReport_Q12012.pdf
Back to Samples Index