absrel: (all method) boolean, if TRUE
relative convergence
if FALSE
absolute convergence (default to TRUE
)
abserror: (all method) Areas on cartogram differ at most by an
(absolute value of) error of abserror. That is,
max_{polygons} |area_on_cartogram - target_area| <= abserror
(default to 10000)
abstol: ("dcn"
) the absolute convergence error tolerance:
max_\{polygons\} |area(i) - area(i-1)|
default to 1000
relerror: (all method) Areas on cartogram differ at most by an
(absolute value of) relative error of relerror. That is,
max_\{polygons\} |area_on_cartogram / target_area - 1| <= relerror
(default to 0.01)
reltol: ("dcn"
) the absolute convergence tolerance:
max_\{polygons\} abs(area(i) - area(i-1))/area(i-1)
default to 1e-3
L: ("gsm" or "gn"
) integer, gives the value of L
(default
is 512), must be a power of two (for fftw)
maxit: (all method) the maximum number of iterations,
default to 50 for "gsm" or "gn"
and 5000 for "dcn"
.
maxit_internal: ("gsm" or "gn"
) the maximum number of internal
iterations, default to 10000.
min_deltat: ("gsm" or "gn"
) the time step minimum, default to 1e-14.
mp: (all method) if a region contains exactly zero population, it will be
replaced by mp times the smallest (strictly) positive population in any
region (default to 0.2)
pf: ("gsm" or "gn"
) Determines space between map and boundary (default to 1.5)
sigma: ("gsm" or "gn"
) Width of Gaussian blur to smoothen the density (default to 5)
maxinc: ("gsm" or "gn"
) number of times algorithm is allowed to
increase (default to 3)
center: ("gsm" or "gn"
) either a character string
(only possible choices are "centroid"
or "point_on_surface"
) or a function. If the
object is a function, it will be used to
calculate the "center" of polygons; "point_on_surface"
will use the function sf::st_point_on_surface
while "centroid"
(the default) will use sf::st_centroid.
grid: ("gsm" or "gn"
) boolean, if TRUE
export the final
grid from flow algorithm (default to TRUE
). Setting to FALSE
check.ring.dir: (all method) boolean, if TRUE
controls polygons orientation
(default to TRUE
)
check.only: (all method) boolean, if TRUE
control only polygons orientation
check.duplicated: (all method) boolean, if TRUE
controls
if polygons have duplicated points (default to TRUE
)
verbose: (all method) integer giving the verbosity level
(default to 0
, not verbose)
num_threads: (all method) int, number of threads (default to 1).
For "dcn"
used for centroid calculations.
If multipolygons/regions have huge
number of points it can be useful to set it to a small
number (2 or 3 ?). For "gsm"
useful for large grid.
num_threads=-1
means that open MP will choose the
number of threads using maximum.