Main Features
Symbology
The type column indicates the value to use for the type
argument in mf_map(x, var, type)
. The data column displays the relevant data types for each map types. The cartography column indicates the corresponding function in cartography
.
map type | type | data | polygon | point | line | cartography |
---|---|---|---|---|---|---|
Base Map | "base" |
geometry | - | |||
Proportional Symbols | "prop" |
stock | propSymbolsLayer() |
|||
Typology | "typo" |
category | typoLayer() |
|||
Choropleth | "choro" |
ratio | choroLayer() |
|||
Graduated Symbols | "grad" |
stock | - | |||
Symbols | "symb" |
category | - | |||
Proportional Symbols + Typo | "prop_typo" |
stock & category | propSymbolsTypoLayer() |
|||
Proportional Symbols + Choro | "prop_choro" |
stock & ratio | propSymbolsChoroLayer() |
|||
Symbols + Choro | "symb_choro" |
category & ratio | - |
Map Layout
name | cartography |
---|---|
mf_title() |
- / layoutLayer() |
mf_arrow() |
north() |
mf_credits() |
- / layoutLayer() |
mf_scale() |
barscale() |
mf_layout() |
layoutLayer() |
mf_annotation() |
- |
mf_label() |
labelLayer() |
Themes
mf_theme()
defines a map theme. It sets the margins of the figure, a background color, a foreground color and some parameters of the title. A set of theme is included in the package and it is possible to create custom ones.
Export
The mf_export()
function exports maps in raster (.png) or vector formats (.svg). The size of the exported map will fit the height/width ratio of a spatial object.
Datasets
Several datasets are embedded in the package:
A GeoPackage of Martinique municipalities can be imported with
mf_get_mtq()
(or viasf::st_read()
).Sources: Base comparateur de territoires (upload date: 2018-09-25) & ADMIN EXPRESS-COG (2018 edition).
Citation: Insee and IGN, 2018
Fields:
- INSEE_COM: Municipality identifier
- STATUS: Municipality administrative status
- LIBGEO: Municipality name
- POP: Total population, 2015
- MED: Median disposable income adjusted per equivalent household member, in euros, 2015
- CHOM: Unemployed population, 2015
- ACT: Active population, 2015
A csv file of professional mobility flows between Martinique municipalities.
Sources: Flux de mobilité - déplacements domicile-lieu de travail (upload date: 2018-08-01)
Citation: Insee, 2018
Fields:
- i: Municipality of residence identifier
- j: Municipality of workplace identifier
- fij: Flows of workers (employed population, 15 y.o. or more, 2015, only flows > 100)
- sj: Administrative status of the workplace municipality