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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With