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

Weird "0" overlaps #80

Closed chilampoon closed 3 years ago

chilampoon commented 3 years ago

Hi, when I generating my venn diagram:

VennDiag <- euler(c("A" = 0, "B" = 8, "C" = 0, "A&B" = 7, 
                    "B&C" = 5, "A&C" = 0, "A&B&C" = 0))

The plot is like image

> VennDiag
      original fitted residuals regionError
A            0  0.187    -0.187       0.009
B            8  8.077    -0.077       0.008
C            0  0.198    -0.198       0.010
A&B          7  6.946     0.054       0.013
A&C          0  0.000     0.000       0.000
B&C          5  4.921     0.079       0.011
A&B&C        0  0.261    -0.261       0.013

diagError: 0.013 
stress:    0.001 

So some of the overlapping regions in the plot are actually with 0 overlaps... Did I do something wrong? How can I resolve it? Thanks.

chilampoon commented 3 years ago

P.S the ideal plot should be like this image and with proportional circles

jolars commented 3 years ago

There is no guarantee that the resulting diagram is an exact fit when one is not possible. Try shape = "ellipse".

chilampoon commented 3 years ago

Thanks, it works well after running several times