The
SGPANEL procedure has a required PANELBY statement that is used to
define the classifier variables for the panel. This statement must
be specified before any plot, axis, or legend statement or else an
error occurs. You can use options in the PANELBY statement to control
the attributes of the panel. For example, you can use the COLUMNS=
option to specify the number of columns in the panel.
SGPANEL can use four different layouts, which are specified
by the LAYOUT= option in the PANELBY statement. The layout determines
how your classifier variables are used to create the panel, and also
affects the number of classifier variables that you can specify.
The
default layout is PANEL. With this layout, you can specify any number
of classifier variables. The graph cells in the panel are arranged
automatically, and the classifier values are displayed above each
graph cell in the panel. When you specify multiple classifier variables,
the order of the classifier variables determines how the graph cells
are sorted.
Another
layout is called LATTICE. This layout requires exactly two classifier
variables. The values of the first variable are assigned as columns,
and the values of the second variable are assigned as rows. The classifier
values are displayed above the columns and to the right side of the
rows.
Two additional layouts
are available, which are called COLUMNLATTICE and ROWLATTICE. These
layouts require exactly one classifier variable. The values of the
classifier variable are assigned as cells in a single row or column.
If you have a large
number of classifier variables, then the best method for creating
a panel is to choose one or two classifiers for the PANELBY statement.
Then specify the remaining variables in a BY statement. This method
maximizes the space for the plots and generates results that are easier
to interpret.