Previous Page | Next Page

Statistical Graphics Using ODS

An Overview of Styles

An ODS style definition provides formatting information for specific visual aspects of your SAS output (see the section Style Elements and Attributes). The appearance of tables and graphs is coordinated within a particular style. For tables, this information typically includes a list of font definitions and a list of colors. Each font definition specifies a family, size, weight, and style. Colors are associated with common areas of output, including titles, footnotes, BY groups, table headers, and table cells. For graphs, styles also control the appearance of graph elements including lines, markers, fonts and colors. ODS styles also include elements specific to statistical graphics, such as the style of fitted lines, confidence bands, and prediction limits. For more information about styles, see the SAS Output Delivery System: User's Guide.

You can specify a style by using the STYLE= option in an ODS destination statement such as HTML, PDF, RTF, or PRINTER. You can also specify a style in the LISTING destination; however, it affects graphs but not tables. Each style produces output with the same content, but with a different visual appearance. For example, the following statement requests output produced with the JOURNAL style:

ods html style=Journal;

You can use any SAS style or any style that you define yourself. The following statements list the names of all of the styles and then display four of them:

proc template;
   list styles;
   source Styles.Default;
   source Styles.Statistical;
   source Styles.Journal;
   source Styles.RTF;

The results of this step (not shown) are a list of over fifty styles in the SAS listing and four style definitions in the SAS log. The style definitions are often hundreds of lines long. See the section Style Definitions and Colors for more information about style definitions. While you can use any style, only seven styles are typically used with ODS Graphics. They are described in Table 21.2.

Table 21.2 Styles


Default in




A color style whose dominant colors are blue, gray, and white, with bold sans-serif fonts. See Figure 21.13.


SAS/STAT documentation

A color style whose dominant colors are blue, creamy gray, and white, with sans-serif fonts. See Figure 21.14.



A color style, similar to DEFAULT, but with a white background. See Figure 21.12.



A black-and-white style with filled areas, and with sans-serif fonts. See Output 21.3.1.



A black-and-white style, similar to JOURNAL, but with empty areas. See Output 21.3.2.



A color style whose dominant colors are blue, white, and black, with Times Roman fonts. See Figure 21.11.



A color style, similar to STATISTICAL, whose dominant color is tan. See Figure 21.8.

Each ODS destination has its own default style, as shown in Table 21.2. Most output in SAS/STAT documentation uses the STATISTICAL style. However, throughout this chapter, you can see examples of other styles. For more information about styles, see the SAS Output Delivery System: User's Guide.

Previous Page | Next Page | Top of Page