Description Usage Arguments Details Value
Takes a sf object representation of a map and simplifys it by removing polygons that are under a certain size.
1 | simplify_mapdata(mapdata, min_area = 2.5, degree_tolerance = 0.1)
|
mapdata |
sf object containing polygons or multipolygons to simplify. |
min_area |
Minimum area of polygons to keep. |
degree_tolerance |
Tolerance parameter for simplifying polygons. |
** NOTE: This function adds two polygons to the edges of the map to prevent the removal of polygons near the edges redefining the map bounds.
The simplified sf object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.