get_venn_polygon_shapes | R Documentation |
Get Venn shapes as polygon_list
get_venn_polygon_shapes(
counts,
proportional = FALSE,
sep = "&",
circles_only = FALSE,
circle_nudge = NULL,
rotate_degrees = 0,
return_type = c("JamPolygon"),
...
)
counts |
|
proportional |
|
sep |
|
circles_only |
|
circle_nudge |
|
rotate_degrees |
|
... |
additional arguments are ignored. |
This function takes a Venn overlap counts and creates corresponding circles or ellipses that represent either a Venn diagram, or proportional Venn (Euler) diagram.
For non-proportional Venn diagrams, this function accepts up to 5 sets, although the 5-way Venn diagram is not visually intuitive.
For proportional Euler diagrams, this function simply passes
the count vector to eulerr::euler()
and returns the output.
That function accepts more sets, however not all overlaps may
be represented in the output.
list
in polygon_list format with "x"
and "y"
elements,
or when return_type="JamPolygon"
it returns JamPolygon
.
Other venndir polygons:
simple_ellipse()
counts <- c(A=1, B=2, `A&B`=3, C=4)
venn_colors <- colorjam::rainbowJam(3, alpha=0.5);
vjp <- get_venn_polygon_shapes(counts, return_type="JamPolygon")
plot(vjp, fill=venn_colors)
vjp <- get_venn_polygon_shapes(counts,
return_type="JamPolygon",
proportional=TRUE)
plot(vjp, fill=venn_colors)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.