plot_polygon_list | R Documentation |
Plot polygon_list using base R
plot_polygon_list(
polygon_list,
col = NULL,
border = "black",
lwd = 1,
add = FALSE,
asp = 1,
bty = "n",
xaxt = "n",
yaxt = "n",
xlab = "",
ylab = "",
xlim = NULL,
ylim = NULL,
rule = c("evenodd", "none"),
...
)
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()
,
polygon_areas()
,
polygon_circles()
,
polygon_ellipses()
,
polygon_list_labelr()
,
polygon_list_to_xy_list()
,
rescale_polygon_list()
,
simple_ellipse()
,
union_polygon_list()
,
xy_list_to_polygon_list()
counts <- c(A=1, B=2, `A&B`=3, C=5, `B&C`=2, `A&C`=2, `A&B&C`=1)
x <- eulerr::euler(counts)
polygon_list <- eulerr_to_polygon_list(x)
plot_polygon_list(polygon_list,
col=colorjam::rainbowJam(length(polygon_list), alpha=0.5))
polygon_list2 <- list(A=polygon_list$A, BC=polygon_list[c("B", "C")])
plot_polygon_list(polygon_list2,
col=colorjam::rainbowJam(length(polygon_list2), alpha=0.5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.