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.

756 IGRAPH<br />

• Y assigns the built-in dimension $count to the range axis.<br />

• VERTICAL defines the counts to appear along the vertical dimension.<br />

• BAR adds a bar element to the chart.<br />

• LABEL labels the bars in the chart with the number of cases included in the bars. These<br />

labels appear inside the bars.<br />

• SHAPE indicates that the bars are rectangles. However, EFFECT adds a third dimension<br />

to the chart, yielding three-dimensional solids.<br />

Example<br />

IGRAPH<br />

/X1=VAR(volume94) TYPE=CATEGORICAL<br />

/Y=VAR(sales96) TYPE=SCALE<br />

/COORDINATE=HORIZONTAL<br />

/EFFECT=NONE<br />

/BAR (MEAN) LABEL OUTSIDE VAL SHAPE=PYRAMID BASELINE=370.00.<br />

• X1 assigns the categorical variable volume94 to the X1 axis.<br />

• Y assigns the scale variable sales96 to the range axis.<br />

• HORIZONTAL defines sales96 to appear along the horizontal dimension.<br />

• EFFECT defines the chart as two-dimensional.<br />

• BAR adds a bar element to the chart.<br />

• MEAN defines the summary function to apply to sales96. Each bar represents the mean<br />

sales96 value for the corresponding category of volume94.<br />

• LABEL labels the bars in the chart with the mean sales96 value. These labels appear<br />

outside the bars.<br />

• SHAPE indicates that the bars are pyramids.<br />

• BASELINE indicates that bars should extend from 370. Any bar with a mean value above<br />

370 extends to the right. Any bar with a mean value below 370 extends to the left.<br />

PIE Subcommand<br />

A simple pie chart summarizes categories defined by a single variable or by a group of related<br />

variables. A clustered pie chart contains a cluster of simple pies, all of which are stacked into<br />

categories by the same variable. The pies are of different sizes and appear to be stacked on top<br />

of one another. The cluster contains as many pies as there are categories in the cluster variable.<br />

For both simple and clustered pie charts, the size of each slice represents the count, the percentage,<br />

or a summary function of a variable.<br />

The following keywords are available:<br />

summary function Defines a function used to summarize the variable defined on the<br />

SUMMARYVAR subcommand. If the SUMMARYVAR assignment is<br />

$COUNT or $PCT, the PIE subcommand cannot have a summary function.<br />

Otherwise, of the summary functions described on p. 764, SUM,<br />

SUMAV, SUMSQ, NGT(x), NLE(x), NEQ(x), NGE(x), NGT(x), and<br />

NIN(x1,x2) are available.

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

Saved successfully!

Ooh no, something went wrong!