jolars / eulerr

Area-Proportional Euler and Venn Diagrams with Ellipses
https://jolars.github.io/eulerr/
GNU General Public License v3.0
130 stars 18 forks source link

Empty "interaction" present #91

Closed SamPazicky closed 2 years ago

SamPazicky commented 2 years ago

Apologies in advance in case I am making some mistake here. I have a dataset:

protein_list_numbers <- c("1"=3290,"2"=2717,"3"=3569,"4"=3316,"5"=3598,"6"=3471,"1&2"=2717,"1&3"=2640,"1&4"=2466,"1&5"=2485,"1&6"=2415,"2&3"=2228,"2&4"=2132,"2&5"=2098,"2&6"=2059,"3&4"=3316,"3&5"=2667,"3&6"=2596,"4&5"=2495,"4&6"=2444,"5&6"=3471,"1&2&3"=2228,"1&2&4"=2132,"1&2&5"=2098,"1&2&6"=2059,"1&3&4"=2466,"1&3&5"=2294,"1&3&6"=2233,"1&4&5"=2156,"1&4&6"=2114,"1&5&6"=2415,"2&3&4"=2132,"2&3&5"=1956,"2&3&6"=1921,"2&4&5"=1881,"2&4&6"=1851,"2&5&6"=2059,"3&4&5"=2495,"3&4&6"=2444,"3&5&6"=2596,"4&5&6"=2444,"1&2&3&4"=2132,"1&2&3&5"=1956,"1&2&3&6"=1921,"1&2&4&5"=1881,"1&2&4&6"=1851,"1&2&5&6"=2059,"1&3&4&5"=2156,"1&3&4&6"=2114,"1&3&5&6"=2233,"1&4&5&6"=2114,"2&3&4&5"=1881,"2&3&4&6"=1851,"2&3&5&6"=1921,"2&4&5&6"=1851,"3&4&5&6"=2444,"1&2&3&4&5"=1881,"1&2&3&4&6"=1851,"1&2&3&5&6"=1921,"1&2&4&5&6"=1851,"1&3&4&5&6"=2114,"2&3&4&5&6"=1851,"63"=1851)

Notice that 3 has 3569 elements, 4 has 3316 elements and 3&4 share 3316 elements. Thus, 4 should be completely engulfed by 3. This is however not reflected in the diagram (unlike the analogous situations with 1&2 and 5&6).

venn_euler <- euler(protein_list_numbers, shape="circle")
plot(venn_euler)

euler

Thank you in advance.

SamPazicky commented 2 years ago

input="union" resolves it, sorry expected that to be default, my fault. Resolved then.