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.

748 IGRAPH<br />

• Y assigns sales96 to the dependent axis, defining it to be continuous.<br />

• X1 assigns sales95 to the X1 axis, defining it to be a scale variable (continuous).<br />

• X2 assigns region to the X2 axis, defining it to be categorical.<br />

• X1LENGTH, YLENGTH, and X2LENGTH define the length of each axis in inches.<br />

COLOR, STYLE, and SIZE Subcommands<br />

COLOR, STYLE, and SIZE specify variables used to create a legend. Each value of these variables<br />

corresponds to a unique property of the chart. The effect of these variables depends on<br />

the type of chart.<br />

• Most charts use color in a similar fashion; casewise elements draw each case representation<br />

using the color value for the case, and summary elements draw each group representation<br />

in the color that represents a summarized value in the color data dimension.<br />

• For dot-line charts, dot charts, and scatterplots, symbol shape is used for style variables<br />

and symbol size is used for size variables.<br />

• For line charts and lines in a scatterplot, dash patterns encode style variables and line<br />

thickness encodes size variables.<br />

• For bar charts, pie charts, boxplots, histograms, and error bars, fill pattern encodes style<br />

variables. Typically, these charts are not sensitive to size variables.<br />

CATEGORICAL legend variables split the elements in the chart into categories. A categorical<br />

legend shows the reader which color, style, or size is associated with which category of the<br />

variable. The colors, styles, or sizes are assigned according to the discrete categories of the<br />

variable.<br />

SCALE legend variables apply color or size to the elements by the value or a summary<br />

value of the legend variable, creating a continuum across the values. COLOR and SIZE can<br />

create either scale legends or categorical legends. STYLE can create categorical legends only.<br />

Scale variables have the following keywords:<br />

MIN Defines the minimum value of the scale.<br />

MAX Defines the maximum value of the scale.<br />

• The keywords MIN and MAX and their assigned values must be enclosed in parentheses.<br />

In addition, the following keywords are available for COLOR, STYLE, and SIZE:<br />

LEGEND Determines if the legend is displayed or not. The legend explains how to<br />

decode color, size, or style in a chart.<br />

TITLE Specifies a string used to title the legend.<br />

The following keywords are available for COLOR and STYLE:<br />

CLUSTER Creates clustered charts based on color or size variables.<br />

STACK Creates stacked charts based on color or size variables.<br />

CLUSTER and STACK are mutually exclusive. Only one can be specified.

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

Saved successfully!

Ooh no, something went wrong!