keep_big_polygons | R Documentation |
Exclude small polygons from SpatialPolygons object
keep_big_polygons(polygons, threshold_size)
polygons |
SpatialPolygonsDataFrame object. |
threshold_size |
(numeric) threshold value of area to determine whether
polygons are big or not. Areas must be according to projection of |
A SpatialPolygonsDataFrame with polygons with areas above
threshold_size
.
data("spdf_range", package = "rangemap") sp::plot(spdf_range) big_polys <- keep_big_polygons(polygons = spdf_range, threshold_size = 0.2) sp::plot(big_polys)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.