EDIT: I have the two lists below. They are written exactly as they are presented:
x1 <- list()
x1$A <- as.character(c("Per_36","Cent","CeM","vDG","LAVL","RSGd"))
x1$B <- as.character(c("vCA1","DLE","Per_36","vDG","DIE","Per_35"))
x1$C <- as.character(c("vCA1","Cg1","LAVL", "RSGc", "RSGd","Per_35","Per_36"))
x1$D <- as.character(c("Por","Cg1","RSGc","LAVL","Per_35","RSGd","Per_36"))
x2 <- list()
x2$A <- as.character(c("Per_36","Per_35","Por","vCA1","BLV","Cent","PrL"))
x2$B <- as.character(c("BLA","VIE","BLV","Por","Cent","Ment","dCA1"))
x2$C <- as.character(c("dDG","Per_36","CeM","Per_35","BLV","dCA1","PrL","IL"))
x2$D <- as.character(c("CeC","RSGb","CeL","dDG","CeM","dCA1","PrL","IL"))
They were generated in the exact same way. When I run the function calculate.overlap
from VennDiagram
package in x1 I get a nice and plot and the function runs perfectly. But when I run in x2, I get an empty list, which clearly is wrong. I just can't see what is wrong in it. Any help??
overlapx1
$a6
[1] "Per_36"
$a12
character(0)
$a11
character(0)
$a5
[1] "LAVL" "RSGd"
$a7
[1] "Per_35"
$a15
[1] "vDG"
$a4
character(0)
$a10
character(0)
$a13
[1] "vCA1"
$a8
character(0)
$a2
[1] "Cg1" "RSGc"
$a9
[1] "Cent" "CeM"
$a14
[1] "DLE" "DIE"
$a1
character(0)
$a3
[1] "Por"
When I run overlapx2 <- calculate.overlap(x2)
I get an equal list with all vectors of the list = character(0)
EDIT 2: the link to the package is below https://cran.r-project.org/web/packages/VennDiagram/index.html
And the Manual https://cran.r-project.org/web/packages/VennDiagram/VennDiagram.pdf
The Author is Hambo Chen, but it's maintained by Paul Boutros