Your answer is one click away!

Ignacio February 2016
### Programmatically create Venn diagrams at scale?

I would like to create a Venn Diagram like the following:

The challenge is to have the circles and intersections with the right proportions. That is:

- Group 1 should be 15% of the universe, group 2 83%, and group 3 30%.
- The intersection between G1 G2 and G3 should be 7% of the universe
- etc

Is there a way of doing this? This is what I have right now:

```
library(VennDiagram)
grid.newpage()
draw.triple.venn(area1 = 15, area2 = 83, area3 = 30, n12 = 13, n23 = 28, n13 = 7,
n123 = 7, category = c("Group 1", "Group 2", "Group 3"), lty = "blank",
fill = c("skyblue", "pink1", "mediumorchid"))
```

This works a bit better, not sure if the overlap is completely correct though

```
library(venneuler)
venn <- venneuler(c(A=83, B=30, C=15, "A&B"=28, "B&C"=7, "A&C"=13, "A&B&C"=7))
plot(venn)
```

Asked in February 2016

Viewed 1,467 times

Voted 12

Answered 1 times

Viewed 1,467 times

Voted 12

Answered 1 times