The output of calculate.overlap is not clear. There are some names for each position of venn diagram such as: $a1 , $a2 , ... It becomes so complicated when we draw it for five list. How to recognize which names ($a1 , $a2 , ...) related to the overlap of which lists?
library(VennDiagram)
overlap=calculate.overlap(
x=list(
"A"=c("a","b","c"),
"B"=c("a","b","c","d"),
"C"=c("a","c","d")
)
)
and this is the output:
$a5
[1] "a" "c"
$a2
[1] "b"
$a4
character(0)
$a6
[1] "d"
$a1
character(0)
$a3
character(0)
$a7
character(0)
How to replace these names with the names of my list?
My expected output is:
$A,B,C
[1] "a" "c"
$A,B
[1] "b"
$A,C
character(0)
$B,C
[1] "d"
$A
character(0)
$B
character(0)
$C
character(0)