Controlling The Appearance of Your Graphs |
By default, the attributes of various elements of the graph are derived from specific style elements (or from device entry parameters if the NOGSTYLE system option is in effect), unless explicitly overridden with procedure or global statement options. For example, you can use the CTITLE= and CTEXT= options in the GOPTIONS global statement to change the color of the text in all of your graphs. You can use the SYMBOL statement to specify colors for markers. The settings remain in effect until you change them or end your SAS session. For information on GOPTIONS, see GOPTIONS Statement and Specifying Colors in a GOPTIONS Statement. See the examples in SAS/GRAPH Statements.
Instead of specifying global options, which affect all of your SAS/GRAPH output, you can specify options on specific action statements that affect only the output produced by that statement. Values that you specify on procedure action statements override default style attributes (or device entry parameters) and global options. For an example, see Modifying the Appearance of Radar Charts.
The documentation for each option that overrides a style element includes the name of the style element and attribute. For example, the documentation for the CAXIS= option for the GCHART procedure includes the following style reference information:
Style reference: | Color attribute of the GraphAxisLines element |
Attributes that are used repeatedly might be best specified in an ODS style. However, if you have created a customized style, be aware that you might need to make this style available to anyone that you send your SAS code to.
Attributes that are used only once or occasionally are best specified using SAS/GRAPH statements.
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.