[BioC] Venn Diagram for 2, 3 and 4 sets (can be extended for more)

Steffen Moeller steffen_moeller at gmx.de
Fri Oct 5 10:50:23 CEST 2007


Dear all,

I needed Venn Diagrams to accomodate 4 sets rather than the 3 that I got via 
the limma package and I could not find it elsewhere. 

# Some test data
A<- 1:20
B<- 1:20
C<- 2:20
D<- 3:21

# input gathered into a list, the names
# appear in the diagram
input<-list(a=A,b=B,c=C,d=D)

# calculation of values that should
# go into all the fields
vc <- getVennCounts(input)

# drawing of diagram
drawVennDiagram(vc)

The diagrams look like the ones from limma, i.e., no variation of circle shape 
and to reflect the size of the sets. The only novelty is that is also works 
on 4 sets and it is avoiding the use of classes.

What should I do with these 295 lines of code now? It does not seem enough for 
a package on its own. Is anybody interested? Gordon?

Cheers,

Steffen



More information about the Bioconductor mailing list