Make a continuous cartogram (density equalizing maps)
1 2 3 4 5 6 7
a sf object which contains at least two columns:
obviously a geometry column (giving the map) and a column which
contains a count by region (leading to a density by region,
density to be equalized by deformation). Each row of
a character string which indicates the name of the
the method to be used, can be one of the following:
a named list given to cartogramR_options function
which process options see cartogramR_options for
details. Default to
A list with the following components:
cartogram: a sf object (in the same order of
data or sorted by
see reordered argument) which contains the cartogram
(ie the initial polygons after deformation)
orig_area: original areas of regions
final_area: final areas of regions in the cartogram
orig_centers: the initial centers calculated with st_point_on_surface
final_centers: the centers after deformation
gridx: (for flow-based method) final grid (x-axis) if requested (see cartogramR_options for details).
gridy: (for flow-based method) final grid (y-axis) if requested (see cartogramR_options for details).
count: the count by region
target_area: target areas of regions
initial_data: the initial sf object
details: names of original data, idcount variable, algorithm
options: values of options
Dougenik, J., Chrisman, R. & Niemeyer, D. (1985). An algorithm to construct continuous area cartograms. Professional Geographer 37: 75-81.
Gastner, M. & Newman, M.E.J. (2004). Diffusion-based method for producing density equalizing maps. Proc. Natl. Acad. Sci. USA, 101:7499-7504
Gastner, M., Seguy, V. & More, P. (2018). Fast flow-based algorithm for creating density-equalizing map projections. Proceedings of the National Academy of Sciences USA, 115:E2156-E2164, website: go-cart
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.