Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The output order of function calculate.overlap

Tags:

r

venn-diagram

I am using "calculate.overlap" function in R package "VennDiagram". I am comparing four sets of data as following:

library(VennDiagram)

overlap=calculate.overlap(
    x=list(
        "1"=1,
        "2"=2,
        "3"=3,
        "4"=4
    )
) 

The output file "overlap" consists of 15 lists. They are called:

$a6, a12, a11...  

How do I know which list belongs to which comparison?

like image 763
CandicePHChu Avatar asked May 26 '16 02:05

CandicePHChu


1 Answers

By replacing x in overlap[[x]] with red number 1-15, you can get a complete list of genes of interest at the specific location in Venn diagram.

Also, you can get the numbers of genes by using length() function.

enter image description here

like image 135
CandicePHChu Avatar answered Oct 15 '22 23:10

CandicePHChu