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.

Example<br />

899<br />

MAPS<br />

MAPS<br />

/GVAR = VAR(fromctry)<br />

/GSET = ’World Countries’ LAYER=’World’<br />

/TITLE = ’Total Messages Per Country’<br />

/DOTMAP= $COUNT.<br />

• This command creates a map that uses dot densities within the borders of each country to<br />

show the number of e-mail messages received from that country.<br />

• The data for this example are records of individual e-mail messages.<br />

• The geographic variable is the country from which each message originated.<br />

• The $COUNT stand-in variable requests that the messages be counted for each country.<br />

IVMAP Subcommand<br />

Example<br />

An individual values map uses color and/or pattern differences to indicate the value each<br />

region has on a single variable.<br />

VAR(varname) The variable whose values determine the color and/or pattern for each<br />

region. This specification is required.<br />

(SUM=function) The aggregation to be performed on the specified variable to produce<br />

the values represented by the individual colors. Required even if the<br />

data contain only one record per region (in which case you can use any<br />

of the functions that return the single value, such as MEAN or MODE).<br />

From the dialog boxes, only MODE is available. Not required if the<br />

variable is $COUNT.<br />

LEGENDTITLE The title for the legend. (DEFAULT) explicitly requests the default,<br />

which is the label of the variable whose values are shown.<br />

VISIBLE Determines whether the theme is visible when the map is initially<br />

drawn. The default is YES. The alternative, NO, is useful on multipletheme<br />

maps where you intend to experiment with which themes to<br />

show.<br />

MAPS<br />

/GVAR = VAR(country)<br />

/GSET = ’World Countries’ LAYER=’World’<br />

/IVMAP= VAR(climate) SUM=(MODE).<br />

• This command produces a map in which each country is colored to indicate its predominant<br />

climate.<br />

• The legend contains the value labels for CLIMATE.<br />

• The MODE function produces the most frequently occurring value for each country.<br />

Because this data file contains only one record for each country, that value is obtained and<br />

shown.

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

Saved successfully!

Ooh no, something went wrong!