venn | R Documentation |
Plot a Venn diagram (with two groups), to scale, either with circles or with squares.
venn(
setA = 50,
setB = 50,
both = 25,
method = c("circle", "square"),
labels = c("A", "B"),
col = c("blue", "red")
)
setA |
Total area of set A. |
setB |
Total area of set B. |
both |
Area of intersection of sets A and B. |
method |
Indicates whether to plot circles or squares. |
labels |
Labels for the two sets. ( |
col |
Colors of the two sets. |
Plots a to-scale Venn diagram with two sets, so that the relative areas of the two sets and their intersection are exact.
None.
venn(setA=86, setB=1622, both=10)
venn(setA=86, setB=1622, both=10, method="square")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.