Robert Allison's SAS Graphics Examples - Version 4 Created: April, 2004 To view these examples, view the "aaaindex.htm" file in an IE browser. ^^^^^^^^^^^^ I recommend IE rather than netscape because netscape does not support the html alt= flyover text, which many examples uses. Hopefully these examples show that sas graphics software can do "Just about anything", and the sas code will provide a good starting-point for sas users who are wanting to create similar graphics. Some other graphics software might be easier to use than sas, but sas graphics gives you the flexibility and power to produce almost *any* kind of custom graphics you want - and this can be done programmatically so the production of new/updated graphics can be easily generalized and automated (whereas most other 'easy-to-use' graphics software only provide a GUI-based interfaces and you have to keep manually re-creating their graphics over and over.) These examples were all created by Robert Allison, as test cases to test SAS software. For most of these examples, a nice-looking non-sas graphic was identified in a webpage, paper, magazine, or other public forum, and Robert then wrote sas code to produce a similar (or hopefully better!) sas version of the same graphic. And, a few of the examples are totally original (not based on any previously-existing graphic). In addition to showing the sas graphics capabilities, these examples also make heavy use of sas "ods html" capability, which provides chart-tip flyover text, drilldowns, hotspots, 3d borders, and other ods style capabilities. Note that I've set up many of the drilldowns such that they tie in to the actual/real web pages out on the web. These examples were created using v9 sas on a Windows PC. They should all be able to run using v8.2 and higher sas, and they should run ok on Unix also (unix doesn't have all the fonts, such as "arial", therefore you might have to try changing the fonts and font sizes to get them to look good on unix). Also, if you leave out the "ods html" stuff, and the html= drilldown stuff, you should be able to get most of the graphs and maps to run in v6 sas as well :) All of the code for these examples was written by Robert Allison. These examples (intentionally) look very much like graphics that our customers and competitors have, but the examples and sas code used here were totally written from scratch (ie, no code was "borrowed" or "stolen" - it was all written totally from scratch by Robert Allison). Be aware that the data used in these examples should all be considered as contrived/non-accurate data. In most cases the values were just 'eyeballed' from the original graph, and in some cases the data are just totally random fabrications. The examples were designed to look "plausibly real", but please do not rely on the data values as being correct! Updates: 13may2004 Made correction to annotate variables in guns.sas. Previously I was using 'y=' where I should have used 'midpoint=' (this produced annotation that looked ok because annotate picks good defaults, but was not technically correct.) 27may2004 Enhanced several examples to use the "arial" hardware font, and adjusted my pc's settings such that it would draw the characters with anti-aliasing (smoothing of edges). Robert E. Allison, Jr., PhD Cary, NC 27513 voice: xxx-xxx-xxxx fax: yyy-yyy-yyyy email: robincary@gmail.com ----- And, the standard disclaimers... This software is being provided "AS IS" without any express or implied warranties. SAS Institute Inc. is not liable for any damages caused by the use of this software. -----