This function has been renamed: Please use cartogram_cont() instead of cartogram().
cartogram(shp, ...)SpatialPolygonDataFrame or an sf object
Arguments passed on to cartogram_cont
weightName of the weighting variable in x
itermaxMaximum iterations for the cartogram transformation, if maxSizeError ist not reached
maxSizeErrorStop if meanSizeError is smaller than maxSizeError
prepareWeighting values are adjusted to reach convergence much earlier. Possible methods are "adjust", adjust values to restrict the mass vector to the quantiles defined by threshold and 1-threshold (default), "remove", remove features with values lower than quantile at threshold, "none", don't adjust weighting values
thresholdDefine threshold for data preparation
verboseprint meanSizeError on each iteration