Format IGRAPH
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 36 37 38 39 40 41 42 43 | * The syntax creates 2 graphs. Their format is then modified by a script. * Raynald Levesque rlevesque@videotron.ca. DATA LIST LIST /x y a. BEGIN DATA 1 2 2 2 5 1 4 8 5 5 12 2 7 15 4 8 25 6 9 26 1 10 27 8 END DATA. FORMATS a x y (F8.0). IGRAPH /VIEWNAME='Graphic1' /X1 = VAR(x) TYPE = SCALE (MIN=0 MAX=10) /Y = VAR(y) TYPE = SCALE (MIN=0 MAX=28) /COORDINATE = VERTICAL /POINTLABEL = VAR(a) ALL /X1LENGTH=3.0 /YLENGTH=2.1 /X2LENGTH=3.0 /CATORDER VAR(a) (ASCENDING VALUES SHOWEMPTY) /SCATTER COINCIDENT = NONE /LINE(MAXIMUM) KEY=OFF STYLE = LINE DROPLINE = OFF INTERPOLATE = STRAIGHT BREAK = MISSING . EXE. IGRAPH /VIEWNAME='Graphic2' /X1 = VAR(x) TYPE = SCALE (MIN=0 MAX=10) /Y = VAR(y) TYPE = SCALE (MIN=0 MAX=24) /COORDINATE = VERTICAL /POINTLABEL = VAR(a) ALL /X1LENGTH=3.0 /YLENGTH=2.1 /X2LENGTH=3.0 /CATORDER VAR(a) (ASCENDING VALUES SHOWEMPTY) /SCATTER COINCIDENT = NONE /LINE(MAXIMUM) KEY=OFF STYLE = LINE DROPLINE = OFF INTERPOLATE = STRAIGHT BREAK = MISSING . EXE. * The script parameters are (in this order): strGraphName, intDeltaX, intDeltaY,blnGrid,dblThick. * Note: parameters intMaxX et intMaxY are read by the script from the graphics themselves. SCRIPT 'C:\\Program Files\\SPSS\\Scripts\\IGraph\\format igraph.sbs' /("Graphic1,1,3,TRUE,1"). SCRIPT 'C:\\Program Files\\SPSS\\Scripts\\IGraph\\format igraph.sbs' /("Graphic2,2,4,FALSE,2"). * Make sure you change the path, if necessary, of the "format igraph.sbs" file before running the syntax. |
Related pages
...
Navigate from here