The CLASSVARS= argument
is required to specify a list of classification variables, using the
following syntax:
CLASSVARS=(class-var1 …class-varN)
By default, a data cell
is created for each crossing of these variables in the input data.
The total number of grid cells created is the result of a crosstabulation
table of all the classification variables plus any empty cells needed
to complete the last row or column of the grid. You can request that
data cells be generated for all possible crossings, even when the
class variables have no values at those crossings. For more information,
see the
SPARSE= option.
If the class variable
is of type character, its values are returned in data order. To control
the ordering of the values, you can sort the input data by the classification
variables. If the class variable is of type numeric, the values are
displayed in ordinal order.
Formats can be assigned
to class variables to create classification levels (for example, an
AGEGROUPFMT. format for numeric AGE). In this case, the classification
is performed after the format is applied. For numeric data, the order
is ordinal, based on the first value in each class.
Use the
INCLUDEMISSINGCLASS option to control whether cells are
displayed when any value crossing contains a missing value.
The output
size does not grow automatically as the number of cells increases.
To set a panel size for the current template, use the DESIGNHEIGHT=
and DESIGNWIDTH= options in the BEGINGRAPH statement. To set a panel
size for all templates in the current SAS session, use the HEIGHT=
and WIDTH= options in the ODS GRAPHICS statement. Size settings in
the ODS GRAPHICS statement override size settings in the BEGINGRAPH
statement. The default output width is 640px, and the default output
height is 480px.
As the number of cells
in the grid increases, the size of each cell decreases. At some point
the cells might become so small that a meaningful graph cannot be
rendered. The
CELLHEIGHTMIN= and
CELLWIDTHMIN= options set a threshold for the smallest
cell. If the actual cell height or width becomes smaller, no panel
is drawn. The default minimum cell size is CELLHEIGHTMIN=100px and
CELLWIDTHMIN=100px.
Using the default panel
size and cell size, the DATAPANEL layout accommodates a grid of about
24 cells (6 columns by 4 rows). If you know that the number of cells
is larger, you should increase the overall panel size, or decrease
the minimum cell size, or both. You can also use the
ROWS=,
COLUMNS=, and
PANELNUMBER= options to partition your data so
that a number of smaller grids are produced that cumulatively show
all of the value crossings.