Previous Page | Next Page

Statistical Graphics Using ODS

Statistical Graphics Procedures

There are three statistical graphics procedures in SAS/GRAPH that use ODS Graphics and provide convenient syntax for creating a variety of plots from raw data or from procedure output.


creates single-cell and multi-cell scatter plots and scatter plot matrices with optional fits and ellipses.


creates single-cell plots with a variety of plot and chart types.


creates single-page or multi-page panels of plots and charts conditional on classification variables.

In addition, the SGRENDER procedure in SAS/GRAPH provides a way to create plots from graph templates that you have modified or written yourself.

See the SAS/GRAPH: Statistical Graphics Procedures Guide for more information. You do not need to enable ODS Graphics in order to use the SG procedures.

These procedures do much more than make scatter plots. They can produce density plots, dot plots, needle plots, series plots, horizontal and vertical bar charts, histograms, and box plots. They can also compute and display loess fits, polynomial fits, penalized B-spline fits, reference lines, bands, and ellipses. PROC SGRENDER is the most flexible because it uses the Graph Template Language. The syntax for the other SG procedures is much simpler than that of the GTL, and so these procedures are recommended for creating most plots commonly required in statistical work.

Previous Page | Next Page | Top of Page