r - Programmatically create Venn diagrams at scale? -


i create venn diagram following: enter image description here

the challenge have circles , intersections right proportions. is:

  • group 1 should 15% of universe, group 2 83%, , group 3 30%.
  • the intersection between g1 g2 , g3 should 7% of universe
  • etc

is there way of doing this? 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")) 

enter image description here

this works bit better, not sure if overlap 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) 

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -