SAS Institute. The Power to Know

SAS/GRAPH(R) 9.2: Statistical Graphics Procedures Guide

space
Previous Page | Next Page

Introduction to SAS/GRAPH Statistical Graphics Procedures

Introduction to the SGSCATTER Procedure

The SGSCATTER procedure creates a paneled graph for multiple combinations of variables. The procedure syntax supports the following features:

  • three types of graph layouts: PLOT, COMPARE, and MATRIX

  • basic scatter plots

  • fit and confidence plots: loess curves, regression curves, penalized B-spline curves, and ellipses

  • distribution plots: histograms, box plots, and density curves

  • legends

The SGSCATTER procedure has three plot statements that create different types of layouts, as shown in the following examples:

[SGSCATTER PLOT example graph]

The PLOT statement creates a paneled graph with multiple independent cells. A cell is created for each combination of X and Y variables that you specify.

[SGSCATTER COMPARE graph]

The COMPARE statement creates a paneled graph that uses common axes for each row and column of cells.

[SGSCATTER MATRIX example graph]

The MATRIX statement creates a matrix of scatter plots, in which each cell represents a different combination of variables. In the diagonal cells, you can place labels, histograms, or density curves.

For more information about the SGSCATTER procedure and the procedure syntax, see The SGSCATTER Procedure.

space
Previous Page | Next Page | Top of Page