Overview (XGRAPH command)
XGRAPH
generates
a high-resolution chart by computing statistics from variables in
the active dataset and constructing the chart according to your specification.
The chart can be a 3-D bar chart, population pyramid, or dot plot.
The chart is displayed where high-resolution display is available
and can be edited with the Chart Editor and saved in an Output file.
Note:
Although you can create other charts with XGRAPH
, these are not currently supported.
Basic Specification
The basic specification is the command name followed by a chart expression. The chart expression must identify one or more variables and a data element for the chart.
Syntax Rules
- The chart expression
is required and must appear first. It can optionally be preceded by
CHART=
. IfCHART
is used, the=
must be present. All other subcommands are optional. - After the chart expression, subcommands can appear in any order.
- Only a single instance of each subcommand is allowed.
- Subcommand names and keywords must be spelled in full.
- Required square brackets cannot be merged
for different types of specifications. For example, when a summary
function and a data element are adjacent, they cannot be merged. That
is,
[VALUE] [BAR]
cannot be written as[VALUE BAR]
.
Limitations
-
XGRAPH
does not produce charts with more than 1,000,000 data values. - When a weight is in
effect and the
ERRORBAR
subcommand is used on a chart that displays medians, counts, or percentages, the case weights must be integers.