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.

Operations<br />

893<br />

MAPS<br />

• Each MAPS command creates a single map.<br />

• Data are aggregated to the level of the values of the geographic variable.<br />

• After aggregation, data values are matched by the values of the geographic variable to the<br />

values of a layer in a specified geoset. This is known as data binding. By default, the software<br />

looks for a layer whose values match the values of the geographic variable specified<br />

on the MAPS command.<br />

• If multiple themes are requested, they are drawn in this order: individual values, range of<br />

values, dot density, pie, bar, and symbol.<br />

Limitations<br />

• A maximum of ten bars or pie slices can be shown. For bars corresponding to separate<br />

variables, the limit is six.<br />

• A maximum of 99 values is allowed in an individual values map.<br />

• Each theme can be applied only once to each map.<br />

• All themes on a map must be bound to the same layer. For example, it is not possible to<br />

have a range of values based on countries and graduated symbols based on cities.<br />

GVAR Subcommand<br />

Example<br />

The GVAR subcommand requires the name of an SPSS variable that identifies the geographic<br />

regions, such as COUNTRY or COUNTY. The values of this variable must match the values in<br />

a table of the geoset. Occasionally, the values of a single variable do not fully identify regions,<br />

as in the case of United States counties, which can occur with the same name in more<br />

than one state. In this case, a second variable is required to refine the match.<br />

MAPS<br />

/GVAR = VAR(county) VAR(state)<br />

/GSET = ’United States’<br />

/DOTMAP= VAR(sales) SUM=(sum).<br />

• Because the same county name can occur within different states, the variable STATE is<br />

required to ensure that COUNTY is unique.<br />

XY Subcommand<br />

The XY subcommand is useful when the SPSS data contain the coordinates of points to be<br />

shown on a map. By naming these coordinates, you can create a new layer in the geoset that<br />

contains the points and displays themes at those points. This subcommand requires three<br />

variables, giving in order the x (longitude) and y (latitude) coordinates and a key variable<br />

that identifies the points. The data are aggregated on the key variable; if there is more than

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

Saved successfully!

Ooh no, something went wrong!