A Quick Look at the SAS Graphing Software

SAS Platform Graphing Software

Regardless of your level of proficiency with SAS, you can use ODS Graphics or SAS/GRAPH software to develop a wide variety of graphs. These can range from simple plots to complex, multi-cell graphs. The SAS Platform provides the following main graph software systems:

ODS Graphics

produce a wide variety of graphics through the Output Delivery System (ODS) in industry-standard image formats such as PNG and SVG. SAS provides a suite of ODS Graphics software that you can use to create maps and template-based graphs. In addition, many analytical procedures also use ODS Graphics to produce graphs automatically by default.

ODS Graphics is installed as part of Base SAS.

SAS/GRAPH

produces maps and a variety of charts and plots using devices to generate output in formats such as PNG, PDF, and SVG. Most procedures that produce device-based graphics also produce GRSEG catalog entries in addition to any image files, vector files, or displayed output. See SAS/GRAPH.

SAS/GRAPH is an optional product. It might not be available at your site.

ODS Graphics

A Quick Overview of ODS Graphics

SAS ODS Graphics, sometimes called SAS ODS Statistical Graphics, is an extension of the SAS Output Delivery System (ODS). ODS Graphics provides SAS analytical procedures to create complex analytical graphs that deliver the analysis results with clarity and without clutter. ODS Graphics provides relevant graphs automatically as part of these analytical procedures. In addition, you have easy-to-use tools for creating related graphs for previewing the data or for creating graphs from the results of multiple analyses.

ODS Graphics is driven by the Graph Template Language (GTL), which provides the power and flexibility to create many complex graphs. For SAS analytical procedures that support ODS Graphics, standard GTL templates that generate graphics output are delivered with SAS. You can modify these templates in order to customize the appearance of the graphics output of these procedures. You can also use GTL to create your own templates for creating custom graphics. Because of the power and flexibility of the GTL language, modifying or creating template code can be a complex task. Typically, working with GTL is a task for advanced graph programmers.

You can use ODS Graphics software to generate commonly used graphs independent of SAS analytical procedures. Although ODS Graphics software was initially designed to facilitate the production of statistical graphs, its capabilities are also well suited for the production of non-statistical, business graphs. These graphs can be used for the preliminary exploration of data and the construction of specialized displays for analyses.

ODS Graphics Software

The ODS Graphics system contains the following software:

ODS GRAPHICS statement

controls the graphics capabilities of SAS analytical and Base procedures that support ODS Graphics. The statement enables or disables ODS Graphics processing and sets graphics environment options. ODS Graphics is enabled by default on all platforms except z/OS.

You can use the ODS GRAPHICS statement options to control many aspects of your graphics. For example, you can use options to specify the size and format of your output images. The settings that you specify remain in effect for all graphics until you exit the session. Within the session, they remain in effect until you change them or reset these settings with another ODS GRAPHICS statement.

SAS ODS Graphics procedures

provide a concise syntax for creating effective statistical graphs. The SGPLOT, SGPANEL, and SGSCATTER procedures provide access to the most commonly used features of the SAS Graph Template Language. These procedures enable you to create single-cell plots and charts, multi-page classification panels, comparative scatter plots, and scatter plot matrices. The procedures provide many options for customizing the appearance of your graphs.

The SGPIE procedure enables you to create pie and donut charts. This procedure is preproduction.

The ODS Graphics software includes the capability to render maps. The SGMAP procedure is based on the functionality of ODS Graphics. Use the SGMAP procedure to create maps and then overlay plots such as text, scatter, or bubble plots.

Graph Template Language (GTL)

provides the power and flexibility to create advanced statistical graphics. Advanced graph programmers can create customized layouts and graphs with Graph Template Language.

Automatic ODS Graphics from SAS Analytical Procedures

The SAS analytical procedures that support ODS Graphics can produce graphs automatically when ODS Graphics is enabled in SAS code. When ODS Graphics is enabled, the graphs specified as part of any procedure's output are written to the active ODS destinations. You can control the specific graphs that are produced by using the PLOTS= options in the procedure statement or by using the ODS SELECT and ODS EXCLUDE statements. When ODS Graphics is disabled, these procedures do not produce graphs.

ODS Graphics is enabled by default. To disable automatic graphics, use the following statement:

ods graphics off ;

To re-enable automatic graphics, use the following statement:

ods graphics <on> </ options >;

Base SAS statistical procedures CORR, FREQ, and UNIVARIATE support ODS Graphics. See Base SAS Procedures Guide: Statistical Procedures for more information. Many other SAS procedures also support ODS Graphics. To determine whether the procedures that you are using support ODS Graphics, refer to the procedure documentation.

SAS/GRAPH

SAS/GRAPH is an optional software product that creates and delivers accurate, high-impact visuals. This enables decision makers to gain a quick understanding of critical business issues. SAS/GRAPH software produces a variety of graphs and maps using a device-based system.

Devices control the format of your graphics and determine the type of output. For example, devices determine whether SAS/GRAPH produces a PNG file or an SVG file. For device-based graphics, you can specify the graphical output environment such as the graphics output format, image size, and so on. For example, you can send the graphics output to a hard copy graphics output device such as a printer, plotter, or slide camera.

SAS/GRAPH creates presentation graphics. It can create text slides, display several graphics at one time, combine graphics and text in one display, and create automated presentations.

The variety of graphics output that is generated can be reviewed, displayed on your screen or in a web browser, or stored in catalogs.

Note: SAS/GRAPH requires a separate license to install. It might not be installed at your site.

The SAS/GRAPH system contains the following software:

Statements used by SAS/GRAPH

global and local statements provided by SAS/GRAPH and by Base SAS enable you to enhance the appearance of graphical output by selecting text fonts, colors, patterns, and line styles.

SAS/GRAPH procedures

organize the presentation of your data and visually represent the relationship between data values as two- or three-dimensional graphs, including charts, plots, and maps. SAS/GRAPH provides GMAP, a robust mapping procedure that can create block, choropleth, prism, and surface maps. SAS/GRAPH also provides utility procedures and statements to manage the output.

SAS/GRAPH Annotate facility

enables you to generate a special data set of graphics commands from which you can produce graphics output. The Annotate data set is used to generate custom graphics or to enhance graphics output from many device-based SAS/GRAPH procedures.

SAS Data and AI Studio

SAS Data and AI Studio (known as SAS Studio prior to 2026.06) is a development application for SAS that you access through your web browser. With SAS Data and AI Studio, you can access your data files, libraries, and existing programs, and you can write new programs. You can also use the predefined tasks to generate SAS code.

Last updated: June 18, 2026