The LAYOUT DATALATTICE
and LAYOUT DATAPANEL statements each create a grid of graphs based
on the values of one or more classification variables. In the grid,
the axes are always external and displayed on the “primary”
axes by default. The axes that are considered primary depend on the
settings for the XAXIS= and YAXIS= options in plot statements that
are specified within the LAYOUT PROTOTYPE. For managing the primary
axes, both the LAYOUT DATALATTICE and LAYOUT DATAPANEL statements
have COLUMNAXISOPTS=, COLUMN2AXISOPTS=, ROWAXISOPTS=, and ROW2AXISOPTS=
options that manage the axis features separately for columns and rows.
The settings that are available can manage odd and even columns and
rows separately, enabling you to simplify the axis display within
the grid.
The following table
shows which axis is primary for the XAXIS= and YAXIS= settings, and
which axis option to use to manage that primary axis.
The settings that
are available for the axis options can manage odd and even columns
and rows separately, enabling you to simplify the axis display within
the grid.
-
To manage the first, third, and
odd occurrences of a primary axis, use the
DISPLAY= option.
-
To manage the second, fourth, and
even occurrences of a primary axis, use the
ALTDISPLAY= option.
You can also display
“secondary” axes in the grid. A secondary axis is not
an independent axis. Rather, it mirrors the primary axis, but it is
displayed on the opposite side and can have different display options.
For example, when the X axis (bottom) is primary, you can mirror that
axis with a secondary X axis at the top of the grid. Similarly, when
the Y2 axis (right) is primary, you can mirror that axis with a secondary
Y2 axis on the left of the grid. A secondary axis makes it easier
to interpolate values in the cells that are farthest away from the
primary axis.
Secondary axes can be
displayed in the graph, provided all plot statements in the LAYOUT
PROTOTYPE map data to the same primary axis. For example, a secondary
X axis can be displayed at the top of the layout, provided all plot
statements set XAXIS=X to map data to the primary X axis (bottom).
Similarly, a secondary Y2 axis can be displayed to the left in the
layout, provided all plot statements set YAXIS=Y2 to map data to the
primary Y2 axis (right). If all plot statements in the LAYOUT PROTOTYPE
do not map data to the same primary axis, the secondary axes are not
displayed.
To display secondary
axes in the grid, use the
DISPLAYSECONDARY= and
ALTDISPLAYSECONDARY= options. As with the options for
the primary axes, the DISPLAYSECONDARY= option manages the first,
third, and odd occurrences of a secondary axis. The ALTDISPLAYSECONDARY=
option manages the second, fourth, and even occurrences of a secondary
axis.
In the default cases
for the plots within the layout, the axis type is always DISCRETE,
LINEAR, or TIME. The
TYPE= option enables you to specify an
axis type that overrides the default. For example, when appropriate
for the data, you can request a LOG axis. When you override the default
axis type, you must be sure to specify the correct axis type for the
plot(s) that you are defining.
Each axis type has features
specific to that type, and the following axis options enable you to
specify features for the different types:
DISCRETEOPTS= ,
LINEAROPTS= ,
LOGOPTS= , and
TIMEOPTS= . One or more of these options can
be specified for an axis, but the specified settings are applied only
to the axis type that supports them.
Note: Certain plot types or layouts
sometimes impose restrictions on what type of axis can be assigned.
See the plot or layout documentation for default axis types and any
restrictions that might apply.