Chapter Contents |
Previous |
Next |
The GMAP Procedure |
Requirements: | At least one response variable is required. You must use the ID statement in conjunction with the CHORO statement. |
Global statements: | FOOTNOTE, LEGEND, PATTERN, TITLE |
Description |
You can use statement options to enhance the appearance of the map, for example, by selecting the colors and patterns that fill the map areas. Other statement options control the selection of ranges for the response variable.
In addition, you can use global statements to modify the map area patterns and legend, as well as add titles and footnotes to the map. You can also use an Annotate data set to enhance the map.
CHOROresponse-variable(s) </ option(s)>; |
option(s) can be one or more options from any or all of the following categories:
ANNOTATE=Annotate-data-set | |
CEMPTY=empty-area-outline-color | |
COUTLINE=nonempty-area-outline-color | SAME | |
XSIZE=map-width <units> | |
YSIZE=map-height <units> |
DISCRETE | |
LEVELS=number-of-response-levels | |
MIDPOINTS=value-list | |
MISSING |
CTEXT=text-color | |
LEGEND=LEGEND<1...99> | |
NOLEGEND |
DESCRIPTION='entry-description' | |
NAME='entry-name' |
HTML=variable | |
HTML_LEGEND=variable |
Required Arguments |
Missing values for the response variable are not considered valid response values unless you use the MISSING option.
Response variables can be either numeric or character. Numeric response variables with continuous values are grouped into ranges, or response levels. Each response level is assigned a different combination of pattern and color. Character variables and numeric variables (when you use the DISCRETE option) have a different response level for each unique response variable value. Numeric variables are treated as continuous unless you use DISCRETE.
For numeric response variables with continuous values, the MIDPOINTS= or LEVELS= option controls the selection of response level ranges.
See also: | About Response Variables |
Options |
See also: | The Annotate Data Set |
Featured in: | Labeling the States on a U.S. Map |
The default outline color is the same as the default COUTLINE= color.
See also: | ALL and Displaying Map Areas and Response Data |
The default outline color depends on the PATTERN statement:
Note: If you specify empty map patterns,
(VALUE=MEMPTY in a PATTERN statement) you should not change the outline color
from the default value, SAME, to a single color. Otherwise all the outlines
will be one color and you will not be able to distinguish between the empty
areas.
Featured in: | Producing a Simple Choropleth Map |
The CTEXT= color specification is overridden if you also use the COLOR= suboption of a LABEL= or VALUE= option in a LEGEND definition that is assigned to the map legend. The COLOR= suboption determines the color of the legend label or the color of the legend value descriptions, respectively.
Featured in: | Creating Maps with Drill-down for the Web |
Use this option if your numeric response variable is assigned a user-written format.
Note: If the data do
not contain a value in a particular range of the format, that formatted range
is not displayed in the legend.
Featured in: | Creating Maps with Drill-down for the Web |
Featured in: | Creating Maps with Drill-down for the Web |
Featured in: | Creating Maps with Drill-down for the Web |
See also: | LEGEND Statement |
Featured in: | Specifying Response Levels in a Block Map |
If you do not use the LEVELS= option or the DISCRETE option, the GMAP procedure determines the number of response levels that use the formula FLOOR(1+3.3 log(N)), where N is the number of unique map area identification variable values.
The LEVELS= option is ignored when you use the DISCRETE or MIDPOINTS= option.
Featured in: | Specifying Response Levels in a Block Map |
For numeric response variables, value-list is either an explicit list of values, or a starting and an ending value with an interval increment, or a combination of both forms:
n <...n> | |
n TO n <BY increment > | |
n <...n> TO n <BY increment > <n <...n> > |
By default the increment value is 1. You can specify discrete numeric values in any order. In all forms, n can be separated by blanks or commas. For example,
midpoints=(2 4 6) midpoints=(2,4,6) midpoints=(2 to 10 by 2)
If a numeric variable has an associated format, the specified values must be the unformatted values.
For character response variables, value-list is a list of unique character values enclosed in quotation marks and separated by blanks:
'value-1' <...'value-n'> |
The values are character strings enclosed in single quotation marks and separated by blanks. For example,
midpoints='Midwest' 'Northeast' 'Northwest'
Specify the values in any order. If a character variable has an associated format, the specified values must be the formatted values.
You can selectively exclude some response variable values from the map, as shown here:
midpoints='Midwest'
Only those observations for which the response variable exactly matches one of the values that are listed in the MIDPOINTS= option are shown on the map. As a result, observations may be excluded inadvertently if values in the list are misspelled or if the case does not match exactly.
Featured in: | Specifying Midpoints in a Prism Map |
See also: | Displaying Map Areas and Response Data |
Featured in: | Creating Maps with Drill-down for the Web |
Featured in: | Labeling the States on a U.S. Map |
Valid units are CM (centimeters), IN (inches), or PCT (percentage of the graphics output area). By default, the unit is character cells (CELLS).
If you specify values for n that are greater than the dimensions of the procedure output area, the map is drawn using the default size.
If you specify either the XSIZE= or YSIZE= option without specifying the other option, the GMAP procedure rescales the dimension for the option that was not specified to retain the original shape of the map.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.