jon jon - 1 month ago 17
R Question

Venn diagram proportional and color shading with semi-transparency

I have following type of count data.

A 450
B 1800
A and B both 230


I want to develop a colorful (possibly semi-transparency at intersections) like the following Venn diagram.

enter image description here

Note: This figure is an example hand drawn in PowerPoint, and it is not to scale.

Answer

Here is a post which discusses Venn diagram from list of clusters and co-occuring factors.

For easy solution use package venneuler:

require(venneuler)
v <- venneuler(c(A=450, B=1800, "A&B"=230))
plot(v)

enter image description here

For more advanced and customized solutions check package VennDiagram.

Comments