union_polygon_list | R Documentation |
Union one or more polygons
union_polygon_list(polygon_list, ...)
polygon_list |
|
... |
additional arguments are ignored. |
This function takes a list
of polygons and iteratively
calls polyclip::polyclip(A, B, op="union")
to produce a union
across one or more polygons, which otherwise only works with two
polygons.
object list
of polygons
Other venndir polygons:
bbox_polygon_list()
,
eulerr_to_polygon_list()
,
get_largest_polygon_list()
,
get_venn_polygon_shapes()
,
intersect_polygon_list()
,
labelr_polygon_list()
,
minus_polygon_list()
,
nudge_polygon_coords()
,
nudge_polygon_list()
,
plot_polygon_list()
,
polygon_areas()
,
polygon_circles()
,
polygon_ellipses()
,
polygon_list_labelr()
,
polygon_list_to_xy_list()
,
rescale_polygon_list()
,
simple_ellipse()
,
xy_list_to_polygon_list()
counts <- c(A=1, B=2, `A&B`=3)
x <- eulerr::euler(counts)
polygon_list <- eulerr_to_polygon_list(x)
circle_union <- union_polygon_list(polygon_list);
jamba::ssdim(circle_union)
circle_colors <- colorjam::rainbowJam(2);
plot_polygon_list(polygon_list, col=circle_colors, main="union")
plot_polygon_list(circle_union, col="#FFDD0088", border="red", lwd=3, add=TRUE)
counts2 <- c(A=1, B=2, `A&B`=3, C=4)
x2 <- eulerr::euler(counts2)
polygon_list2 <- eulerr_to_polygon_list(x2)
plot_polygon_list(polygon_list2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.