Comparison with other packages

Johan Larsson

2026-06-30

This vignette compares eulerr with the other R packages that genuinely fit area-proportional Euler and Venn diagrams, both quantitatively (accuracy and speed) and qualitatively (features and scope).

What counts as a competitor

An area-proportional diagram is one in which each region’s area is made proportional to the quantity it represents. Surprisingly few R packages actually solve this geometric fitting problem. Most Venn/Euler packages draw fixed, schematic shapes and encode quantities through labels or color instead of area.

On CRAN and Bioconductor, the packages that really fit area-proportional diagrams are:

The last section lists the many packages that are not area-proportional fitters and explains why they are excluded.

How accuracy is measured

Comparing fitters fairly is subtle because they optimize different objectives. A package that minimizes overall squared error will look bad if scored on the single worst region, and vice versa. We therefore compare per objective: for each competitor we configure eulerr to optimize the same objective and score both packages on the same metric.

To make the metric identical across packages, we ignore each package’s self-reported diagnostics and instead recompute the fit from its realized geometry. We turn the fitted shapes into polygons, compute the area of every disjoint region with polyclip, and evaluate eulerr’s own statistics on those areas:

Here \(\omega_i\) is the input size of region \(i\) and \(A_i\) its realized area. Both statistics are scale-invariant, so packages that work in different coordinate systems remain comparable. We benchmark on a mix of small hand-built configurations and harder cases derived from eulerr’s bundled fruits and organisms datasets, plus a five-set example.

The three comparisons are:

Comparison Competitor optimizes eulerr setting Scored on
A overall fit (stress) loss = "stress", circles stress
B region proportionality loss = "diag_error", circles diagError
C overlap areas (2–3 circles) loss = "stress", circles stress

In each comparison eulerr’s default ellipse fit is included as a reference (eulerr (ellipse)): ellipses have more degrees of freedom than circles and typically fit better, but the head-to-head against each circle-based competitor uses eulerr’s circle mode.

Accuracy

The stored results were generated without any competitor package installed, so only eulerr’s own numbers are shown below. Install venneuler, BioVenn, and nVennR and re-run data-raw/benchmarks.R for the full comparison.

A: circles vs. venneuler — lower stress is better.

eulerr (circle) eulerr (ellipse)
two-set 4.1e-18 4.1e-18
three-set 0.00096 0.00091
fruits 0.00026 0.00034
organisms 0.35 0.15
kinases 0.011 0.0027

B: region proportionality vs. nVennR — lower diagError is better.

eulerr (circle) eulerr (ellipse)
three-set 0.0072 0.00032
organisms 0.12 0.13
kinases 0.033 0.033

C: circles vs. BioVenn — lower stress is better.

eulerr (circle) eulerr (ellipse)
two-set 4.1e-18 4.1e-18
three-set 0.00096 0.00094
fruits 0.00026 0.00035
Fit error by dataset and package, faceted by comparison. Lower is better. Each competitor is matched against eulerr configured for the same objective.
Fit error by dataset and package, faceted by comparison. Lower is better. Each competitor is matched against eulerr configured for the same objective.

Speed

Runtimes are the median wall-clock time of repeated fits on the machine that generated the results (see sessionInfo in the stored meta). They are indicative rather than definitive — venneuler pays a fixed JVM cost, and absolute numbers depend on hardware — but they show the broad picture.

Median fit time (ms), by dataset and package:

eulerr (circle) eulerr (ellipse)
two-set 1.0 1.0
three-set 32.0 24.0
fruits 1.0 9.0
organisms 164.0 281.0
kinases 60.0 183.0
Median fit time (ms, log scale) by dataset and package.
Median fit time (ms, log scale) by dataset and package.

Feature comparison

Accuracy and speed are only part of the story. The table below summarizes how the packages differ in scope and capabilities.

Package Shapes Max sets Proportional Input Fit reported Key dependency Source
eulerr circle, ellipse, rectangle, square many approximate vectors, data frames, matrices, tables, lists stress, diagError, regionError none (Rust) CRAN
venneuler circle many approximate named vector, data frame stress rJava / Java CRAN
nVennR irregular polygon many quasi lists none C++ GitHub
BioVenn circle 2–3 accurate (2–3) ID lists none none CRAN
vennplot circle (2D), sphere (3D) 2–3 approximate counts, lists none Rcpp, rgl CRAN (dormant)
VennDiagram circle 4 (2 scaled) 2 sets only counts none none CRAN

A few points worth drawing out:

Excluded packages

Many widely cited Venn/Euler packages are not area-proportional fitters and are therefore outside the scope of this comparison.

Package Reason
venn, ggVennDiagram, ggvenn, RVenn, gplots Draw fixed, schematic shapes; quantity shown via labels or color, not area
UpSetR Not a Venn/Euler diagram at all (UpSet matrix/bar charts)
colorfulVennPlot Archived from CRAN; only a 2-set helper, never a general fitter
VennMaster Area-proportional, but a standalone Java application — not an R package
Vennerable Area-weighted, but hosted on R-Forge/GitHub, not CRAN or Bioconductor

Caveats

References

Chen, Hanbo, and Paul C. Boutros. 2011. VennDiagram: A Package for the Generation of Highly-Customizable Venn and Euler Diagrams in R.” BMC Bioinformatics 12 (1): 35. https://doi.org/10.1186/1471-2105-12-35.
Hulsen, Tim. 2021. BioVenn – an R and Python Package for the Comparison and Visualization of Biological Lists Using Area-Proportional Venn Diagrams.” Data Science 4 (1): 51–61. https://doi.org/10.3233/DS-210032.
Micallef, Luana, and Peter Rodgers. 2014. eulerForce: Force-Directed Layout for Euler Diagrams.” Journal of Visual Languages and Computing 25 (6): 924–34. https://doi.org/10.1016/j.jvlc.2014.09.002.
Pérez-Silva, José G., Miguel Araujo-Voces, and Víctor Quesada. 2018. “nVenn: Generalized, Quasi-Proportional Venn and Euler Diagrams.” Bioinformatics 34 (13): 2322–24. https://doi.org/10.1093/bioinformatics/bty109.
Wilkinson, L. 2012. “Exact and Approximate Area-Proportional Circular Venn and Euler Diagrams.” IEEE Transactions on Visualization and Computer Graphics 18 (2): 321–31. https://doi.org/10.1109/TVCG.2011.56.
Xu, Zehao, R. Wayne Oldford, and Martin Lysy. 2017. vennplot: Venn Diagrams in 2D and 3D. https://CRAN.R-project.org/package=vennplot.