can nested layouts. For information about adding a legend or other information
outside of the cells, see “Example 3: A Data Panel with Sidebars” on page 268.
• Axis options for classification panels are specified on the LAYOUT
DATALATTICE or LAYOUT DATAPANEL statement, not on the LAYOUT
PROTOTYPE statement. For information about setting axis options for the layout,
see “Managing Axes in DATALATTICE and DATAPANEL Layouts” on page 239.
Distinction between DATAPANEL and
The DATAPANEL and DATALATTICE layouts differ in how their classification
variables are declared and in how they populate their cells. For the DATAPANEL
layout, the classification variables are declared as a list of variables in parentheses in the
CLASSVAR= option as shown in the following example.
layout datapanel classvars=(product division) / ...;
The number of class variables in the list is unlimited, though the effectiveness of the
graph decreases as the number of class variables exceeds three or four. In such a case, it
is better to use two class variables, and use the other class variables in the BY statement
of the SGRENDER procedure.
For the DATALATTICE layout, one classification variable is assigned for a row
dimension, and one classification variable is assigned for a column dimension. The row
variable is assigned in the ROWVAR= option, and the column variable is assigned in the
COLUMNVAR= option as shown in the following example.
layout datalattice rowvar=product columnvar=division / ...;
Another key difference between the DATAPANEL and the DATALATTICE layouts is
how they create their cells. The DATAPANEL layout creates a cell for each
classification-variable crossing that produces data. Any crossing that does not produce
data is not included in the panel. Conversely, the DATALATTICE layout creates a cell
for each crossing of its classification variables regardless of whether it produce data. A
crossing the produces no data appears as an empty cell in the lattice. This difference is
significant when analyzing data that is sparse. In that case, the DATAPANEL layout
produces a panel that contains only cells that display data while the DATALATTICE
layout produces a lattice that might contain a large number of empty cells.
Organizing Panel Contents
Overview of What to Consider When Planning a Classification Panel
When planning a classification panel, the following factors influence the layout
• grid dimensions (number of rows and columns)
• cell population order as the layout is rendered
• gutters between the cells
• graph aspect ratio
Organizing Panel Contents 231