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.

LINE Subcommand<br />

GRAPH 697<br />

LINE creates one of five types of line charts using keywords SIMPLE, MULTIPLE, DROP,<br />

AREA, or DIFFERENCE.<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 MULTIPLE, depending on<br />

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

SIMPLE Simple line chart. A simple line chart is defined by a single function and a<br />

single BY variable or by multiple functions and no BY keyword. This is the<br />

default if no keyword is specified on LINE and the data define a simple line<br />

(see Figure 15 to Figure 17).<br />

MULTIPLE Multiple line chart. A multiple line chart is defined by a single function and<br />

two BY variables or by multiple functions and a single BY variable. This is the<br />

default if no keyword is specified on LINE and the data define a multiple line<br />

(see Figure 18 to Figure 20).<br />

DROP Drop-line chart. A drop-line chart shows the difference between two or more<br />

fluctuating variables. It is defined by a single function and two BY variables or<br />

by multiple functions and a single BY variable (see Figure 21 to Figure 24).<br />

AREA Area line chart. An area line chart fills the area beneath each line with a color<br />

or pattern. When multiple lines are specified, the second line is the sum of the<br />

first and second variables, the third line is the sum of the first, second, and<br />

third variables, and so on. The specification is the same as that for a simple or<br />

multiple line chart. Figure 25 to Figure 27 show area line charts with multiple<br />

lines.<br />

DIFFERENCE Difference line chart. A difference line chart fills the area between a pair of<br />

lines. It highlights the difference between two variables or two groups. A<br />

difference line chart is defined by a single function and two BY variables or<br />

by two summary functions and a single BY variable. If a second BY variable<br />

is used to define the two groups, the variable must be dichotomous (see Figure<br />

28 to Figure 31).<br />

Figure 15 /LINE=COUNT BY TIME<br />

Specification: count_function BY var<br />

or: sum_function(var) BY var<br />

y-axis title: fn name [+fn var label]<br />

y-axis labels: fn value scale<br />

x-axis title: BY var label<br />

x-axis labels: BY var value labels<br />

Each point on the line represents the number of valid cases for one category.

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

Saved successfully!

Ooh no, something went wrong!