Here is a typical SGSCATTER
procedure, which creates a paneled graph of scatter plots for multiple
combinations of variables, depending on the layout statement that
you use. The procedure requires a procedure statement and one of these
three statements:
PLOT |
creates a paneled graph of scatter plots where each
graph cell has its own independent set of axes.
|
COMPARE |
creates a shared axis panel, also called an MxN
matrix.
|
MATRIX |
creates a scatter plot matrix. |
This example plots the
values of two combinations of Y and X variables and produces a separate
cell for each combination. That is, each Y*X pair is plotted on a
separate set of axes.
proc sgscatter data=sashelp.cars; /* procedure statement */
plot mpg_highway*weight msrp*horsepower; /* plot statement */
run;
Output for the SGSCATTER Procedure