This function has been renamed: Please use cartogram_ncont() instead of nc_cartogram().
nc_cartogram(shp, ...)SpatialPolygonDataFrame or an sf object
Arguments passed on to cartogram_ncont
weightName of the weighting variable in x
kFactor expansion for the unit with the greater value
inplaceIf TRUE, each polygon is modified in its original place, if FALSE multi-polygons are centered on their initial centroid