Create and integrate maps in your R workflow. This package allows various cartographic representations such as proportional symbols, choropleth, typology, flows or discontinuities maps. It also offers several features enhancing the graphic presentation of maps like cartographic palettes, layout elements (scale, north arrow, title...), labels, legends or access to some cartographic APIs.
A vignette contains commented scripts on how to build various types of maps
vignette(topic = "cartography")
Main functions :
Proportional symbols maps (circles, squares, bars)
propSymbolsLayer, propSymbolsChoroLayer, propSymbolsTypoLayer, propTrianglesLayer
Choropleth maps (main discretization methods are available)
Flow maps (proportional and classified links)
getLinkLayer, propLinkLayer, gradLinkLayer, gradLinkTypoLayer
Layout (scale, north arrow, title...)
layoutLayer, north, barscale
legendBarsSymbols, legendChoro, legendCirclesSymbols, legendGradLines, legendPropLines, legendPropTriangles, legendSquaresSymbols, legendTypo
Access to cartographic APIs (via rosm package)
Irregular polygons to regular grid, transformation with data handling
Up to version 1.4.2
cartography was mainly based on
sp and and
for its spatial data management and geoprocessing operations. These dependencies
are as much as possible replaced by
sf functions since version 2.0.0.
Most functions are kept unchanged except for the addition of an
used to take
sf objects as inputs. See the NEWS file for details:
print(news(package = 'cartography')).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.