PIECHART subcommand (FREQUENCIES command)
PIECHART produces a pie chart for each variable named on the VARIABLES subcommand. By default, one slice
corresponds to each category defined by the variable with one slice
representing all missing values. Pie charts are labeled with value
labels or with the value if no label is defined.
- The minimum specification is the
PIECHARTkeyword, which generates default pie charts. -
PIECHARTcan be requested together with eitherBARCHARTorHISTOGRAM. -
FREQandPERCENTare mutually exclusive. If both are specified, only the first specification is in effect. -
MISSINGandNOMISSINGare mutually exclusive. If both are specified, only the first specification is in effect.
MIN(n). Lower bound below which values are not plotted.
MAX(n). Upper bound above which values are not plotted.
FREQ. The pie charts are based on frequencies. Frequencies are displayed when you request values in the Chart Editor. This is the default.
PERCENT. The pie charts are based on percentage. Percentage is displayed when you request values in the Chart Editor.
MISSING. User-missing
and system-missing values are treated as one category. This is the default. Specify INCLUDE on the MISSING subcommand
to display system-missing and user-missing values as separate slices.
NOMISSING. Missing values
are excluded from the chart. If you specify INCLUDE on the MISSING subcommand, each user-missing value is represented
by one slice.
Producing a Basic Pie Chart
FREQUENCIES VARIABLES = RACE /PIECHART.
-
FREQUENCIESproduces a frequency table and the default pie chart for variable RACE.
Producing a Custom Pie Chart
FREQUENCIES VARIABLES = V1 V2 /PIE=MAX(10).
- For each variable V1 and V2,
FREQUENCIESproduces a frequency table and a pie chart with values through 10.