simplify_mapdata: Reduce number of polygons and size of polygons for map...

Description Usage Arguments Details Value

View source: R/Map_Functions.R

Description

Takes a sf object representation of a map and simplifys it by removing polygons that are under a certain size.

Usage

1
simplify_mapdata(mapdata, min_area = 2.5, degree_tolerance = 0.1)

Arguments

mapdata

sf object containing polygons or multipolygons to simplify.

min_area

Minimum area of polygons to keep.

degree_tolerance

Tolerance parameter for simplifying polygons.

Details

** 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.

Value

The simplified sf object.


JGCRI/gcammaptools documentation built on May 4, 2018, 8 a.m.