The LAYOUT
DATALATTICE statement makes it easy to create a grid of graphs, based
on the values of one or two classifications variables. To create a
grid that is based on more than two classification variables, or to
have more control over the grid layout, use LAYOUT DATAPANEL instead.
By default,
the number of cells in the layout is determined by the number of value
pairings that are possible for the classification values plus any
empty cells needed to complete the last row/column of the grid. The
contents of each data cell are based on a graph prototype that you
specify in the
graph-prototype-block. You can enhance the display using one or more
sidebar-statement-blocks. For classification
variables that have many values, you can use the
COLUMNS= and or
ROWS= options and the
PANELNUMBER= option to generate multiple panel
displays.
Classification
variables for the layout are specified on the
ROWVAR= argument (to specify a row variable),
or the
COLUMNVAR= argument (to specify a column variable),
or both arguments to specify both a column and a row variable. The
graph prototype for each data cell’s contents is specified
within a
Prototype Block block, and
sidebars are specified within SIDEBAR blocks. The LAYOUT PROTOTYPE
and SIDEBAR blocks are nested within the LAYOUT DATALATTICE block.
By default,
the first data cell to be filled is in the layout’s top left
corner. Use the
START= option to change the starting data
cell to the bottom left corner.
Rather
than display the header labels outside the grid, you can set
HEADERLABELLOCATION= INSIDE to display them inside the
grid, as shown in the following figure:
Note: The DATALATTICE
layout is designed to be the outermost layout in the template.