Intersect one or more polygons
intersect_polygons(sp, ...)
list
object that contains one or more
sp::SpatialPolygons
.
additional arguments are ignored.
object sp::SpatialPolygons
This function takes a list
of sp::SpatialPolygons
objects, and performs iterative rgeos::gIntersection()
on
the full list, since rgeos::gIntersection()
only operates on
two polygons at a time.
Other venndir spatial:
degrees_to_adj()
,
diff_degrees()
,
display_angles()
,
get_largest_polygon()
,
get_sp_buffer()
,
mean_degree_arc()
,
mean_degrees()
,
nudge_sp()
,
rescale_coordinates()
,
rescale_sp()
,
sp_circles()
,
sp_ellipses()
,
spread_degrees()
,
union_polygons()
circles <- get_venn_shapes(c(A=1, B=1, C=1))
col3 <- c("#FF000077", "#DDDD0088", "#0000FF77")
sp::plot(circles, col=col3)
circle_intersect <- intersect_polygons(circles);
plot(circle_intersect, add=TRUE, col="gold", lwd=3);