27.03.2013 Views

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

690 GRAPH<br />

Basic Specification<br />

The basic specification is a chart type subcommand. By default, the generated chart will have<br />

no title, subtitle, or footnote.<br />

Subcommand Order<br />

Subcommands can be specified in any order.<br />

<strong>Syntax</strong> Rules<br />

• Only one chart type subcommand can be specified.<br />

• The function/variable specification is required for all subtypes of bar, line, error bar, hilo,<br />

and Pareto charts; the variable specification is required for histograms and all subtypes of<br />

scatterplots.<br />

• The function/variable or variable specifications should match the subtype keywords. If<br />

there is a discrepancy, GRAPH produces the default chart for the function/variable or variable<br />

specification regardless of the specified keyword.<br />

Operations<br />

• GRAPH computes aggregated functions to obtain the values needed for the requested chart<br />

and calculates an optimal scale for charting.<br />

• The chart title, subtitle, and footnote are assigned as they are specified on TITLE, SUBTITLE,<br />

and FOOTNOTE subcommands. If you do not use these subcommands, the chart title, subtitle,<br />

and footnote are null. The split-file information is displayed as a subtitle if split-file is<br />

in effect.<br />

• GRAPH creates labels that provide information on the source of the values being plotted.<br />

Labeling conventions vary for different subtypes. Where variable or value labels are<br />

defined in the working data file, GRAPH uses the labels; otherwise, variable names or<br />

values are used.<br />

Limitations<br />

Example<br />

Categorical charts cannot display fewer than 2 or more than 3000 categories.<br />

GRAPH /BAR=SUM (MURDER) BY CITY.<br />

• This command generates a simple (default) bar chart showing the number of murders in<br />

each city.<br />

• The category axis (x axis) labels are defined by the value labels (or values if no value<br />

labels exit) of the variable CITY.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!