Sorry about this. That post is old and the arguments have changed.

Try this instead

fit2 <- euler(c(A = 16971, B = 218, C = 215, 
                "A&B" = 112, "A&C" = 112, "B&C"= 51,"A&B&C" = 23))
plot(fit2,
     fills = c("dodgerblue4", "darkgoldenrod1", "cornsilk4"),
     edges = FALSE,
     fontsize = 8,
     quantities = list(fontsize = 8))

Answer from Johan Larsson on Stack Overflow
🌐
Jolars
jolars.github.io › eulerr › reference › plot.euler.html
Plot Euler and Venn diagrams — plot.euler • eulerr
Defaults for these values, as well ... using eulerr_options(). If the diagram has been fit using the data.frame or matrix methods and using the by argument, the plot area will be split into panels for each combination of the one to two factors. For users who are looking to plot their diagram using another package, all the necessary parameters can be collected if the result of this function ...
🌐
CRAN
cran.r-project.org › web › packages › eulerr › vignettes › introduction.html
Introducing eulerr
September 23, 2025 - # Remove fills, vary borders, display quantities, and switch font. plot( fit2, quantities = TRUE, fill = "transparent", lty = 1:3, labels = list(font = 4) ) Customizing Euler plots is a breeze in eulerr.
🌐
RDocumentation
rdocumentation.org › packages › eulerr › versions › 1.1.0 › topics › plot.euler
plot.euler function - RDocumentation
fit <- euler(c("A" = 10, "B" = 5, "A&B" = 3)) plot(fit, fill_opacity = 0.7) # Change to italic roman font, remove borders and switch colors plot(fit, fill = c("dodgerblue4", "darkgoldenrod1"), lwd = 0, fontface = "italic") # Add counts to the plot plot(fit, counts = TRUE) # Add a custom legend and retain counts plot(fit, counts = TRUE, key = list(space = "bottom", columns = 2)) # Plot without fills and distinguish sets with border types instead plot(fit, lty = c("solid", "dotted"), fill = "transparent", cex = 2, fontface = 2, labels = c("foo", "bar")) # Plot a grid of euler plots dat <- data.f
🌐
CRAN
cran.r-project.org › web › packages › eulerr › vignettes › gallery.html
A Gallery of Euler and Venn Diagrams
completely_contained <- euler(c("A" = 15, "B" = 15, "C" = 0, "A&B" = 3, "A&C" = 0, "B&C" = 0, "A&B&C" = 3)) plot(completely_contained, labels = list(col = c("white", "black", "black")), edges = list(col = "white", lex = 2), fills = c("black", "cyan", "orange"))
🌐
Rdrr.io
rdrr.io › cran › eulerr › man › plot.euler.html
plot.euler: Plot Euler and Venn diagrams in eulerr: Area-Proportional Euler and Venn Diagrams with Ellipses
May 29, 2024 - Defaults for these values, as well as other parameters of the plots, can be set globally using eulerr_options(). If the diagram has been fit using the data.frame or matrix methods and using the by argument, the plot area will be split into panels for each combination of the one to two factors. For users who are looking to plot their diagram using another package, all the necessary parameters can be collected if the result of this function is assigned to a variable (rather than printed to screen).
🌐
GitHub
github.com › jolars › eulerr
GitHub - jolars/eulerr: Area-Proportional Euler and Venn Diagrams with Ellipses · GitHub
Residuals and goodness of fit statistics are provided to assess whether the resulting diagram can be trusted. ... library(eulerr) # From Wilkinson 2012 fit <- euler( c( "A" = 4, "B" = 6, "C" = 3, "D" = 2, "E" = 7, "F" = 3, "A&B" = 2, "A&F" = 2, "B&C" = 2, "B&D" = 1, "B&F" = 2, "C&D" = 1, "D&E" = 1, "E&F" = 1, "A&B&F" = 1, "B&C&D" = 1 ), shape = "ellipse" )
Starred by 138 users
Forked by 19 users
Languages   R 74.4% | C++ 19.4% | TeX 3.6% | Nix 1.0% | C 0.8% | Makefile 0.6% | Shell 0.2%
Find elsewhere
🌐
GitHub
github.com › jolars › eulerr › blob › main › R › plot.euler.R
eulerr/R/plot.euler.R at main · jolars/eulerr
Area-Proportional Euler and Venn Diagrams with Ellipses - eulerr/R/plot.euler.R at main · jolars/eulerr
Author   jolars
🌐
CRAN
cran.r-project.org › web › packages › eulerr › vignettes › visualization.html
Visualizing Euler diagrams with eulerr - CRAN - R Project
September 23, 2025 - Once we have ascertained that our Euler diagram fits well, we can turn to visualizing the solution. For this purpose, eulerr relies on the grid graphics system (R Core Team 2017) and offers intuitive and granular control over the output. Plotting the ellipses is straightforward using the ...
🌐
Jolars
jolars.github.io › eulerr
Area-Proportional Euler and Venn Diagrams with Ellipses • eulerr
An Euler diagram is a generalization of a Venn diagram, relaxing the criterion that all interactions need to be represented. Diagrams may be fit with ellipses and circles via a wide range of inputs and can be visualized ...
🌐
Rdrr.io
rdrr.io › cran › eulerr › src › R › plot.euler.R
eulerr source: R/plot.euler.R
[plot.eulergram()] does the actual #' drawing of the diagram. #' @export #' @examples #' fit <- euler(c("A" = 10, "B" = 5, "A&B" = 3)) #' #' # Customize colors, remove borders, bump alpha, color labels white #' plot(fit, #' fills = list(fill = c("red", "steelblue4"), alpha = 0.5), #' labels = list(col = "white", font = 4)) #' #' # Add quantities to the plot #' plot(fit, quantities = TRUE) #' #' # Add a custom legend and retain quantities #' plot(fit, quantities = TRUE, legend = list(labels = c("foo", "bar"))) #' #' # Plot without fills and distinguish sets with border types instead #' plot(fit
🌐
Quantargo
quantargo.com › help › r › latest › packages › eulerr › 6.1.0
eulerr – R documentation – Quantargo
Become an expert in R — Interactive courses, Cheat Sheets, certificates and more! ... Generate area-proportional Euler diagrams using numerical optimization. An Euler diagram is a generalization of a Venn diagram, relaxing the criterion that all interactions need to be represented.
Top answer
1 of 2
2

Since you are in R, consider using the UpsetR library. It doesn't make Venn diagrams but it helps to visualize overlaps between any number of groups.

http://gehlenborglab.org/research/projects/upsetr/#:~:text=UpSetR%20is%20an%20R%20package,based%20on%20groupings%20and%20queries.

2 of 2
0

You might consider different ways of using the venneuler package. I'm not super thrilled with its usability (or with the accuracy of the overlaps), but you can get it to make custom Venn diagrams.

Here is a thread with some suggestions along these lines.

Below is some sample R code that I slightly modified from an old project that I used to make a 3-category Venn diagram.

I didn't run this to make sure that it works because of an irritating Java dependency issue on my OSX laptop that I don't feel like fixing right now, but as long as you have a JDK on your machine and can install the packages it should work.

# note irritating rJava dependency of venneuler
library(plotrix)
library(venneuler)

#A-B sharing: 200414
#B-C sharing: 17561
#A-C sharing: 16764
#All share 14201

# get coordinates for circles- replace as needed
# this function is supposed to plot stuff, but doesn't actually
ven = venneuler(c(C=48147-17561-16764+14201, 
                  B=347181-17561-200414+14201, 
                  A=325971-200414-16764+14201, 
                  "C&B"=17561, "B&A"=200414, "C&A"=16764, "A&B&C"=14201))

cats = c('A','B','C')

# note- this following only shows up in the .pdf printer, not in the X11 utility plotter
pdf('venn.pdf')
plot(c(-.5,1.5), c(-.5,1.5), type='n', xaxt='n', yaxt='n', bty='n', xlab='', ylab='')
draw.circle(ven$center[1,1], ven$center[1,2], ven$diameters[1],
        col = hsv(1,1,1,.5))
draw.circle(ven$center[2,1], ven$center[2,2], ven$diameters[2], 
            col = hsv(.5,1,1,.5))
draw.circle(ven$center[3,1], ven$center[3,2], ven$diameters[3],
            col = hsv(.1,1,1,.5))

text(ven$center[1,1]+.065, ven$center[1,2], labels=cats[3], cex=1.3)
text(ven$center[2,1], ven$center[2,2]-.2, labels=cats[2], cex=1.3)
text(ven$center[3,1], ven$center[3,2]+.2, labels=cats[1], cex=1.3)

dev.off()
🌐
RDocumentation
rdocumentation.org › packages › eulerr › versions › 7.0.0 › topics › plot.euler
plot.euler function - RDocumentation
# S3 method for euler plot( x, fills = TRUE, edges = TRUE, legend = FALSE, labels = identical(legend, FALSE), quantities = FALSE, strips = NULL, main = NULL, n = 200L, adjust_labels = TRUE, ...
🌐
CRAN
cran.r-project.org › web › packages › eulerr › vignettes › venn-diagrams.html
Venn diagrams with eulerr - CRAN - R Project
As you can see in the last plot, there are cases where Euler diagrams can be misleading. Despite the algorithm attempting its best to make the diagram area-proportional, the constraints imposed by the geometry of the ellipses prevent a perfect fit. This is probably a case where a Venn diagram ...
Top answer
1 of 3
5

Regarding how to fix the issue, it depends on the level of precission you want. From the nVenn algorithm, I authored the nVennR package to create quasi-proportional Euler diagrams. With the caveats mentioned in the link, you can represent larger numbers of sets and show the relative size of each region. In your example,

library(nVennR)
myV <- createVennObj(nSets = 4, sNames = c('A', 'B', 'C', 'D'), sSizes = c(0, 26, 53, 7, 22, 5, 16, 3, 54, 10, 29, 4, 20, 5, 14, 3))
myV <- plotVenn(nVennObj = myV)

And the result would be:

Depending on your requirements, this may not be satisfactory. The proportionality is in the area of the circles, not the regions (you can see that the region 1, 2, 3, 4 - A&B&C&D - has empty space. However, this strategy overcomes the limitations of regular shapes in these representations mentioned by Johan Larsson. If you are interested, there are more details in the vignette.

2 of 3
4

The reason why some areas are left out is simple: the diagram is inexact and is missing some areas. There is no place to put the label for B&C so that's why B and C are missing 2 units. There likely isn't any way (or at least eulerr cannot find it) to perfectly represent your combination with an Euler diagram using ellipses. You either have to accept that it is inexact or try another solution.

Similarly, the residual plot cannot show the missing residuals graphically because there is no area representing them. I am, by the way, the author of this package and I do have something better in mind for the residual plot which would display missing areas as well, but I haven't had time to implement it yet.