SASŪ Graphics

SAS has the ability to produce high-resolution, publication quality graphics through the use of graphic procedures, SAS/Insight, SAS/Analyst and Graph-n-Go. This section will discuss producing SAS graphics through programming.

SAS graphics are usually created using interactive SAS. If the graphic output is redirected to a file or printer, graphics can also be created in batch mode of SAS. See the SAS documentation for details.

When SAS graphics are used in interactive SAS, SAS allows multiple statements to be run within the same procedure. Follow these statements with a RUN statement. To top a procedure from running, use a QUIT statement. Note that sometimes this interactivity is disabled when using a BY statement.


There are several graphics procedures available.

In addition to the graphics procedure, a GOPTIONS statement is available to set specific graphic option defaults and several other graphic statements that enhance the graphic output.



GREPLAY is another SAS graphic procedure. However, it does not create new plots, but instead "replays" graphics created by other procedures. Using templates (SAS or self-defined), you can replay graphics to create slides/graphics that contain more than one graphic. For example, you can create a new graphic that contains 2 scatter plots, or 1 scatter plot and 1 histogram, or a text graphic laid under a plot.