Create a Scatter Plot Matrix

To create a scatter plot matrix:
  1. Open the Graph Gallery if it is not already open. For instructions, see Open and Use the Graph Gallery.
  2. Select the Matrix tab.
  3. Select the predefined matrix graph that you want to use. You can choose from two different types:
    • NxN matrix: The first four predefined matrix graphs in the Graph Gallery create an NxN matrix. This matrix uses one list of variables. It creates a square grid of cells using the list of N variables along the rows and columns.
    • MxN matrix: The last two graphs in the Graph Gallery create an MxN matrix. This type of matrix crosses two lists of variables and creates a rectangular matrix without any diagonal cells.
  4. Click OK. The Assign Data dialog box appears.
    Assign Data dialog box for a scatter plot matrix
  5. Specify the SAS library and data set you want to use for the plot by selecting the appropriate items from the Library and Data Set list boxes.
  6. In the Roles section, select the check box for each variable that you want in the graph. If you want to select all items, then select the check box in the heading.
    For an MxN matrix, select the variables from two lists, one for column variables and another for row variables.
  7. (NxN matrices only) In the Diagonal Cells section, select the plot types for the diagonal cells. You can choose a histogram and up to two density plots.
  8. If you want an ellipse to appear in the cells, do the following:
    1. Check the Ellipse check box.
    2. Select either Mean or Predicted.
    3. You can either change the Alpha value or keep the default value.
    For an NxN matrix, the ellipse appears in the non-diagonal cells.
  9. If you want a more descriptive name for the plot, enter the name in the Name text box. This name identifies the plot in the Assign Data dialog box, in the Cell Properties dialog box, and other places within the application.
    By default, the designer uses generic names for each plot. It is good practice to assign a descriptive name that indicates a response variable or some identifying characteristic of the plot.
  10. Click OK.
Here is an MxN rectangular matrix:
MxN rectangular matrix