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.

758 IGRAPH<br />

• The first slice in each pie begins at 0 degrees and the rotation of the pie is clockwise.<br />

• SUM indicates the summary function applied to the summary variable, sales96. The pie<br />

slices represent the sum of the sales96 values.<br />

• SLICE labels the slices with the value of the summary function. INSIDE places the labels<br />

inside the pie slices.<br />

BOX Subcommand<br />

BOX creates a boxplot, sometimes called a box-and-whiskers plot, showing the median, quartiles,<br />

and outlier and extreme values for a scale variable. The interquartile range (IQR) is the<br />

difference between the 75th and 25th percentiles and corresponds to the length of the box.<br />

The following keywords are available:<br />

OUTLIERS Indicates whether outliers should be displayed. Outliers are values<br />

between 1.5 IQR’s and 3 IQR’s from the end of a box. By default, the<br />

boxplot displays outliers (ON).<br />

EXTREME Indicates whether extreme values should be displayed. Values more<br />

than 3 IQR’s from the end of a box are defined as extreme. By default,<br />

the boxplot displays extreme values (ON).<br />

MEDIAN Indicates whether a line representing the median should be included<br />

in the box. By default, the boxplot displays the median line (ON).<br />

LABEL Displays the number of cases (N) represented by each box.<br />

BOXBASE Controls the shape of the box for three dimensional plots. SQUARE<br />

results in rectangular solids. ROUND yields cylinders.<br />

WHISKER Controls the appearance of the whiskers. Whiskers can be straight<br />

lines (LINE), end in a T-shape (T), or end in a fancy T-shape (FANCY).<br />

Fancy whiskers are unavailable for three-dimensional boxplots.<br />

CAPWIDTH(pct) Controls the width of the whisker cap relative to the corresponding<br />

box. Pct equals the percentage of the box width. The default value for<br />

pct is 45.<br />

Example<br />

IGRAPH<br />

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

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

/COORDINATE=HORIZONTAL<br />

/BOX OUTLIERS=ON EXTREME=ON MEDIAN=ON WHISKER=FANCY.<br />

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

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

• COORDINATE positions the range axis along the horizontal dimension.<br />

• BOX creates a boxplot. The outliers and extreme vales are shown. In addition, a line representing<br />

the median is added to the box.<br />

• WHISKER yields whiskers ending in a fancy T.

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

Saved successfully!

Ooh no, something went wrong!