Uses kernel smoothing to smooth polygon sets

poly_smooth(polygon_set, by = "subid", smoothness = 3, min_points = 5)

Arguments

polygon_set

a data frame containing polygons, separated by `subid`

by

a character containing the name of the column grouping polygons to be smoothed. Default is subid

smoothness

a numeric indicating the smoothing parameter, passed to `smooth_ksmooth`

min_points

a numeric indicating the minimum number of points to smooth. If a polygon has less than this number of points, it is not smoothed.

Value

a polygon set with smoothed coordinates