Within any given layout
in the graph display, each plot axis is always of a particular type.
In the default cases, the axis type is always LINEAR, DISCRETE, or
TIME.
The axis options for
each layout statement include a TYPE= option that enables you to specify
an axis type that overrides the default selection mechanisms. When
you override the default axis type, you must be sure to specify the
correct axis type for the plots that you are defining. For every plot
in the template language, the documentation indicates what axis types
it supports. Plots statements that are specified in the template are
ignored if they are incompatible with the axis type.
Each axis type has features
specific to that type, and the following axis options enable you to
specify features for the different types:
LINEAROPTS = (linear-suboptions)
DISCRETEOPTS = (discrete-suboptions)
TIMEOPTS= (time-suboptions)
LOGOPTS = (log-suboptions)
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.
For example, a bar chart
has two axes – a TYPE=DISCRETE axis for the X axis and a TYPE=LINEAR
axis for the Y axis. If a numeric column (for example, Age) is assigned
to the X role, this column’s values are always treated as discrete
values, never as a continuous range of values. You cannot request
another axis type for the X axis, but you can request a different
axis type for the Y axis.
Sometimes you want a
specialized axis type depending on the nature of the data. For example,
if the data have a very large range of values (orders of magnitude
apart), you could request that the values be displayed on a logarithmic
scale. To set a logarithmic scale, use the TYPE=LOG axis option.
Time series data benefit
from displaying the X axis with a TYPE=TIME axis. A TIME axis type
requires that the column values are SAS Date, Time, or Datetime values.
Three-dimensional plots
such as BIHISTOGRAM3DPARM and SURFACEPLOTPARM always use TYPE=LINEAR
for X, Y, and Z axes.
Note: Certain plot types or layouts
might impose restrictions on what type of axis can be assigned. The
documentation for each plot and layout type identifies any restrictions
that might apply to the axes.