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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

• The default span (2) and sigma value (3) are used.<br />

• Since no BY variable is specified, the x axis is labeled by sequence numbers.<br />

TITLE, SUBTITLE, and FOOTNOTE Subcommands<br />

GRAPH 691<br />

TITLE, SUBTITLE, and FOOTNOTE specify lines of text placed at the top or bottom of the<br />

chart.<br />

• One or two lines of text can be specified for TITLE or FOOTNOTE, and one line of text can<br />

be specified for SUBTITLE.<br />

• Each line of text must be enclosed in apostrophes or quotation marks. The maximum<br />

length of any line is 72 characters.<br />

• The default font sizes and types are used for the title, subtitle, and footnote.<br />

• By default, the title, subtitle, and footnote are left-aligned with the y axis.<br />

• If you do not specify TITLE, the default title, subtitle, and footnote are null, which leaves<br />

more space for the chart. If split-file processing is in effect, the split-file information is<br />

provided as a default subtitle.<br />

Example<br />

GRAPH TITLE = ’Murder in Major U.S. Cities’<br />

/SUBTITLE=’per 100,000 people’<br />

/FOOTNOTE=’The above data was reported on August 26, 1987’<br />

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

BAR Subcommand<br />

BAR creates one of five types of bar charts using keywords SIMPLE, COMPOSITIONAL,<br />

GROUPED, STACKED, or RANGE.<br />

• Only one keyword can be specified, and it must be specified in the parentheses.<br />

• When no keyword is specified, the default is either SIMPLE or GROUPED, depending on<br />

the type of function/variable specification.<br />

SIMPLE Simple bar chart. This is the default if no keyword is specified on the<br />

BAR subcommand and the variables define a simple bar chart. A<br />

simple bar chart can be defined by a single summary or count function<br />

and a single BY variable, or by multiple summary functions and no BY<br />

variable (see Figure 1 to Figure 4).<br />

GROUPED Clustered bar chart. A clustered bar chart is defined by a single function<br />

and two BY variables, or by multiple functions and a single BY<br />

variable. This is the default if no keyword is specified on the BAR<br />

subcommand and the variables define a clustered bar chart (see Figure<br />

5 to Figure 8).<br />

STACKED Stacked bar chart. A stacked bar chart displays a series of bars, each<br />

divided into segments stacked one on top of the other. The height of<br />

each segment represents the value of the category. Like a clustered bar

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

Saved successfully!

Ooh no, something went wrong!