View source: R/cartogramR_options.R
cartogramR_options | R Documentation |
Set the options of cartogramR in the correct format
cartogramR_options(
options,
method = c("gsm", "gn", "dcn", "GastnerSeguyMore", "GastnerNewman",
"DougenikChrismanNiemeyer")
)
options |
a named list with some (or all) the following components:
|
method |
the method to be used, can be one of the following:
|
a list to be processed by cartogramR
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
data(usa)
carto1 <- cartogramR(usa, "electors64", options=list(verbose=1, L=256))
plot(carto1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.