Description Usage Arguments Value Note Author(s)
Pass in an equal area (not long-lat) projected SpatialPolygonsDataFrame
and get
back what you need to plot a Doriling cargogram.
1 2 | dorling_from_sp(polys, value, n_rescales = 50, n_iter = 50, tol = 1000,
quiet = TRUE)
|
polys |
|
value |
values that correspond to the ordered polygons in |
n_rescales, n_iter, tol |
tuning parameters for computing non-overlapping circle polygon radius values. Tweak only if the defaults do not work well. |
quit |
if |
a list
with xy
coordinate matrix, radius
vector, and disc SpatialPolygons
There is a significant limitation in that the polygons have to all be touching (i.e. this is why the README has an example w/o Alaska and Hawaii). If neighbors were computed separately or allowed to be passed in, this could be made more generic. PRs & Issues welcome.
Mathieu Rajerison https://datagistips.hypotheses.org/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.