Venn diagrams for multiple (8) data lists in R
2
0
Entering edit mode
4.2 years ago
arronar ▴ 240

Hi.

I have around eight different lists with numerical values and i want to create a Venn plot for all of them. My lists looks like the above and have different length.

l1 = c(12,1234,544,6546,6445,45465,4566,1333)
l2 = c(89,2344,2346,6564,6424,770,12,4566,1333,4003,234,432)
l3 = c(4003,4002,432,1234)
l4 = ....
l5 = ....

I tried to use the vennDiagram from limma package but without any success and maybe because they have different length.

Is there any quick way to build a Venn diagram for them without calculating by hand the overlap values for each one with the other with intersect() function ?

Thank you

R venn diagram • 9.6k views
ADD COMMENT
0
Entering edit mode

might be better to just provided a binary matrix and pair-wise overlaps than an unreadable Venn diagram

ADD REPLY
10
Entering edit mode
4.2 years ago

There's the venneuler package for this. Note that Euler diagrams with many sets are usually poor visualizations and are best avoided. You should try alternative visualizations e.g. from the UpSetR package.

ADD COMMENT
0
Entering edit mode

Upvote for UpSetR. I used it recently, and though it took me some time to know how to read it properly - and explain it to my colleagues - it was easy enough to create a simple plot. Definitely and improvement on an 8-way venn which will be unreadable.

ADD REPLY
0
Entering edit mode

+1 for UpSetR from me too. It needs some familiarization to read it but it's really helpful.

ADD REPLY
0
Entering edit mode

Kudos for UpSetR! I've been looking for a tool like this for a while.

ADD REPLY
5
Entering edit mode
4.2 years ago
EagleEye 7.0k

You can download the generated SVG file and customize as you want.

http://bioinformatics.psb.ugent.be/webtools/Venn/

ADD COMMENT
0
Entering edit mode

This link is interesting. Thanks for sharing. +1 for the amazing link

ADD REPLY

Login before adding your answer.

Traffic: 1986 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6