Online Documentation

Related Book

Tip Sheets

ODS Statistical Graphics

ODS Statistical Graphics (also known as ODS Graphics) is functionality for easily creating statistical graphics. It is available in a number of SAS products, including SAS/STAT, SAS/ETS, SAS/QC, and SAS/GRAPH software. With it, over 60 statistical procedures can produce graphs as automatically as they do tables. ODS Graphics is an extension of ODS (the Output Delivery System), which manages procedure output and lets you display it in a variety of destinations, such as HTML and RTF. Consequently, many familiar features of ODS for tabular output apply equally to graphs. For statistical procedures that support ODS Graphics, you invoke this functionality with the statement ODS GRAPHICS ON. Graphs and tables created by these procedures are then integrated in your ODS output destination.

In SAS 9.2, SAS/GRAPH software is required for ODS Graphics functionality. With SAS 9.3, all ODS Graphics capabilities moved to Base SAS.

Understanding ODS Statistical Graphics

example of basic ODS graph
html output
Getting Started with ODS Statistical Graphics in SAS® 9.2 presents the fundamental information you need to get started with ODS Statistical Graphics in SAS 9.2. (Revised 2009)

An Overview of ODS Statistical Graphics in SAS 9.3

Summary of ODS Graphics Capabilities provides a concise overview of the capabilities of ODS Graphics.

ODS Graphics Tip Sheet

New procedures use this functionality to product plots for exploratory data analysis and for customized statistical displays. Additional functionality enables you to edit graphs produced on the fly with the ODS Graphics Editor, a point-and-click interface with which you can customize titles, annotate points, and make other changes.

Creating Graphs from Data

sgscatter plot

SAS/GRAPH® Procedures for Creating Statistical Graphics in Data Analysis introduces a family of new SAS/GRAPH procedures that are designed to create stand-alone displays that complement the more specialized graphs produced by the statistical procedures.

Secrets of the SG Procedures presents creative ways to combine the statements and options in the SAS/GRAPH SG procedures that might not be obvious, enabling you to create many of the specialized graphs you need in your industry.

ODS Graphics produces graphs in standard image file formats, and the consistent appearance and individual layout of these graphs are controlled by ODS styles and templates, respectively. Since the default templates for procedure graphs are provided by SAS software, you do not need to know the details of templates to create statistical graphics. However, with some understanding of the underlying Graph Template Language, you can modify the default templates to make changes to graphs that are permanently in effect each time you run the procedure.

Customizing Your Graphs

Customizing ODS Statistical Graphs explains how to access and modify graph templates. By the end of the presentation, which includes code samples and demos, you will have a better understanding of the relationship between statistical procedures, graph templates, style templates, and DATA _NULL_ programs.

The Graph Template Language and the Statistical Graphics Procedures: An Example-Driven Introduction provides a gentle, parallel, and example-driven introduction to the graph template language (GTL) and the statistical graphics (SG) procedures. With the GTL and the SG procedures, you can easily create professional-looking statistical graphics and modify the graphs that the SASŪ System automatically produces.

Modifying ODS Statistical Graphics Templates in SAS® 9.2 reviews the basics of ODS Statistical Graphics and focuses on programming techniques for modifying the default graphs. This paper presents examples to help you navigate the complexity of the default templates and safely customize elements such as titles, axis labels, colors, lines, markers, ticks, grids, axes, reference lines, and legends.

Graph Template Modification Tip Sheet

Graph Template Language Tip Sheet