Vennerable provides Venn diagrams in R. It displays Venn and Euler diagrams for up to 9 different sets and using a variety of geometries. It allows the display of area-weighted Venn diagrams and allows fine graphical control over the result.
plot(v)
Error in if (nointersect) { : missing value where TRUE/FALSE needed
In addition: Warning messages:
1: In min(which(!fequal(fromdist, 0))) :
no non-missing arguments to min; returning Inf
2: NAs introduced by coercion
Having looked through the code, the problem seems to occur in the .find.triangle.within.face function, in which nextix gets set to Inf in cases where all(fequal(fromdist, 0)). While I can't really pretend to be sure that it's correct, the attached patch seems to provide at least a partial fix, in case it's of any interest. It simply falls back to the exact inequality (fromdist!=0) to pick an appropriate value in such situations.
Ported from R-Forge:
Hi,
I've been running into a bug when plotting the ChowRuskey diagrams with certain Venn objects (Vennerable versions 3.0 and 2.2, R3.0.1, MacOSX 10.7.5):
Having looked through the code, the problem seems to occur in the .find.triangle.within.face function, in which nextix gets set to Inf in cases where all(fequal(fromdist, 0)). While I can't really pretend to be sure that it's correct, the attached patch seems to provide at least a partial fix, in case it's of any interest. It simply falls back to the exact inequality (fromdist!=0) to pick an appropriate value in such situations.
Many thanks for a great package,
Tim Rayner