MAP
Choropleth, point and heat maps. The engine aggregates and joins the data to boundaries: the bundled Natural Earth world countries or first-level divisions, or your own GeoJSON or shapefile.
Syntax
Section titled “Syntax”MAP CHOROPLETH(COUNT | PCT | MEAN var | MEDIAN var | SUM var) BY region | POINT(lat lon) | HEAT(lat lon) [/BOUNDARIES=WORLD|ADMIN1|NONE|'file.geojson'|'file.shp'] [/JOIN=property] [/FILTER=property('value' …)] [/PROJECTION=EQUALEARTH|MERCATOR|ALBERSUSA|NATURALEARTH|EQUIRECTANGULAR|ORTHOGRAPHIC] [/SCHEME=name] [/CLASSES=n] [/SIZE=var] [/COLOR=var] [/CELL=degrees] [/TITLE='…'] [/SUBTITLE='…'] [/TEMPLATE=DEFAULT|MONO] [/MISSING=INCLUDE].Synopsis
Section titled “Synopsis”| Kind | Procedure (reads data, produces output) |
| Body | main /SUBCOMMAND[=] … |
| Changes data | no |
| Subcommands | /BOUNDARIES, /CELL, /CLASSES, /COLOR, /FILTER, /JOIN, /MISSING, /PROJECTION, /SCHEME, /SIZE, /SUBTITLE, /TEMPLATE, /TITLE |
| Menu | Analyze ▸ Graphs |
| Slot: Variables | 0+ variable(s); levels: nominal, ordinal, scale; types: numeric, string |
Specifications
Section titled “Specifications”- BOUNDARIES: WORLD (default), ADMIN1, a GeoJSON file or a shapefile; NONE draws points or cells without boundaries.
- JOIN: Boundary property matched to the region values (default: the property matching the most values).
- FILTER: Keep only boundaries whose property equals one of the values, e.g. /FILTER=country(‘India’).
- PROJECTION: Map projection (default: Equal Earth for world-wide maps, otherwise Mercator).
- CLASSES: Colour by n quantile classes (2–9) instead of a continuous scale.
- SIZE / COLOR: POINT maps: circle size by a numeric variable, colour by a categorical one.
- CELL: HEAT maps: cell size in degrees (default: about 1/40 of the data’s extent).
Examples
Section titled “Examples”MAP CHOROPLETH(MEAN income) BY country /TITLE='Mean income by country'.MAP CHOROPLETH(COUNT) BY state /BOUNDARIES=ADMIN1 /FILTER=country('India') /JOIN=name.MAP POINT(lat lon) /SIZE=sales /COLOR=region.MAP HEAT(lat lon) /CELL=2.- Region values are matched by code, by three-digit numeric code (ISO 3166) and by value label, ignoring case; unmatched values are listed in a warning and regions without data are grey.
- Coordinates and boundaries must be WGS84 longitude/latitude; Web Mercator (EPSG:3857) boundary files are converted, other projections are refused.
- Under SPLIT FILE each group gets its own map.
Related
Section titled “Related”CHART, OUTPUT EXPORT, SPLIT FILE
Generated from OrcStat’s command registry and reference. To suggest a change, open an issue.