1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
* Posted to spssnews on 2003/03/14 by Ray. 

GET FILE='C:\\Program Files\\SPSS\\employee data.sav'.
SET SEED=76543.
DO REPEAT v=v1 TO v16.
COMPUTE v=12000+ UNIFORM(50000).
END REPEAT.

IGRAPH /VIEWNAME='Boxplot' /X1 = VAR(category_set1) TYPE = CATEGORICAL /Y =
  VAR(value_set1) TYPE = SCALE  /COORDINATE = HORIZONTAL /COMBINE
  GROUP=VAR(category_set1) TYPE=CATEGORICAL 'Category'
  RESPONSE=VAR(value_set1) TYPE=SCALE 'Value' 
  VAR(v1) 'v1' VAR(v2) 'v2'  VAR(v3) 'v3' VAR(v4) 'v4'  
  VAR(v5) 'v5' VAR(v6) 'v6'  VAR(v7) 'v7' VAR(v8) 'v8'  
  VAR(v9) 'v9' VAR(v10) 'v10'  VAR(v11) 'v11' VAR(v12) 'v12'  
  VAR(v13) 'v13' VAR(v14) 'v14'  VAR(v15) 'v15' VAR(v16) 'v16'  
 /X1LENGTH=3.0 /YLENGTH=3.0 /X2LENGTH=3.0
 /CHARTLOOK='NONE' /CATORDER VAR(category_set1) (ASCENDING VALUES OMITEMPTY)
 /BOX OUTLIERS = ON EXTREME = ON MEDIAN = ON WHISKER = T
 /TITLE='Normal size chart'.


IGRAPH /VIEWNAME='Boxplot' /X1 = VAR(category_set1) TYPE = CATEGORICAL /Y =
  VAR(value_set1) TYPE = SCALE  /COORDINATE = HORIZONTAL /COMBINE
  GROUP=VAR(category_set1) TYPE=CATEGORICAL 'Category'
  RESPONSE=VAR(value_set1) TYPE=SCALE 'Value' 
  VAR(v1) 'v1' VAR(v2) 'v2'  VAR(v3) 'v3' VAR(v4) 'v4'  
  VAR(v5) 'v5' VAR(v6) 'v6'  VAR(v7) 'v7' VAR(v8) 'v8'  
  VAR(v9) 'v9' VAR(v10) 'v10'  VAR(v11) 'v11' VAR(v12) 'v12'  
  VAR(v13) 'v13' VAR(v14) 'v14'  VAR(v15) 'v15' VAR(v16) 'v16'  
/X1LENGTH=3.0 /YLENGTH=6.0 /X2LENGTH=3.0
 /CHARTLOOK='NONE' /CATORDER VAR(category_set1) (ASCENDING VALUES OMITEMPTY)
 /BOX OUTLIERS = ON EXTREME = ON MEDIAN = ON WHISKER = T
 /TITLE='Long chart'.
EXE.