This is one approach to adjusting the label and quantity sizes and providing a "margin".
Check out the documentation under plot.euler for other formatting options.
As eulerr is based on grid you can provide margins in effect by adjusting the size of the viewport used for plotting. The answer shows a plot reduced to 80% of the original height and width.
Although I noticed that the relative positions of the venn diagram elements changes as you rerun the code I never found that the circles straying outside the canvas margin.
set.seed() did not seem to change anything.
library(eulerr)
library(grid)
my_dt <- data.frame(
value = c(1:8),
A = c(TRUE, TRUE, FALSE, TRUE, TRUE, FALSE, FALSE, TRUE),
B = c(TRUE, FALSE, TRUE, TRUE, FALSE, FALSE, TRUE, TRUE),
C = c(FALSE, FALSE, FALSE, FALSE, TRUE, TRUE, TRUE, FALSE)
)
p <- plot(euler(my_dt[, c("A", "B", "C")]),
quantities = list(cex = 2),
labels = list(cex = 2))
# edit the viewport dimensions
p
width <- unit(0.8, "npc")
p
height <- unit(0.8, "npc")
p

Created on 2023-06-30 with reprex v2.0.2
Answer from Peter on Stack OverflowJolars
jolars.github.io › eulerr
Area-Proportional Euler and Venn Diagrams with Ellipses • eulerr
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. Diagrams may be fit with ellipses and circles via a wide range of inputs and can be visualized ...
Jolars
jolars.github.io › eulerr › reference › plot.euler.html
Plot Euler and Venn diagrams — plot.euler • eulerr
# S3 method for class 'euler' plot( x, fills = TRUE, patterns = FALSE, edges = TRUE, legend = FALSE, labels = identical(legend, FALSE), quantities = FALSE, strips = NULL, bg = FALSE, main = NULL, n = 200L, adjust_labels = TRUE, ... ) # S3 method for class 'eulerr_venn' plot( x, fills = TRUE, patterns = FALSE, edges = TRUE, legend = FALSE, labels = identical(legend, FALSE), quantities = TRUE, strips = NULL, bg = FALSE, main = NULL, n = 200L, adjust_labels = TRUE, ...
CRAN
cran.r-project.org › web › packages › eulerr › eulerr.pdf pdf
Area-Proportional Euler and Venn Diagrams with Ellipses
Query eulerr_options() (without any argument) to see all the available options and read more about the plot-related ones in ... pointsize size in pts to be used as basis for fontsizes and some margin sizes in the resulting plot#’ ... This function gets or sets updates in the global environment that are used in plot.euler(). ... Example data from the VennMaster package.
GitHub
github.com › jolars › eulerr
GitHub - jolars/eulerr: Area-Proportional Euler and Venn Diagrams with Ellipses · GitHub
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%
CRAN
cran.r-project.org › web › packages › eulerr › vignettes › introduction.html
Introducing eulerr
3 weeks ago - In our example, the diagError is and our stress is 0.002, suggesting that the fit is accurate. We can now be confident that eulerr provides a reasonable representation of our input using circles. Were it otherwise, we might try to use ellipses instead.
Wikipedia
en.wikipedia.org › wiki › Euler_diagram
Euler diagram - Wikipedia
March 23, 2026 - In a logical setting, one can use model-theoretic semantics to interpret Euler diagrams, within a universe of discourse. In the examples below, the Euler diagram depicts that the sets Animal and Mineral are disjoint since the corresponding curves are disjoint, and also that the set Four Legs is a subset of the set of Animals.
Jolars
jolars.github.io › eulerr › reference › euler.html
Area-proportional Euler diagrams — euler • eulerr
Fit Euler diagrams (a generalization of Venn diagrams) using numerical optimization to find exact or approximate solutions to a specification of set relationships. The shape of the diagram may be a circle or an ellipse.
CRAN
cran.r-project.org › web › packages › eulerr › vignettes › gallery.html
A Gallery of Euler and Venn Diagrams
library(eulerr) This vignette serves as a gallery for Euler diagrams and as a showcase of the various options for customization that are available.
RDocumentation
rdocumentation.org › packages › eulerr › versions › 1.0.0 › topics › eulerr
eulerr Area-Proportional Euler Diagrams
fit1 <- eulerr(c("A" = 1, "B" = 0.4, "C" = 3, "A&B" = 0.2)) # Same result as above fit2 <- eulerr(c("A" = 1, "B" = 0.4, "C" = 3, "A&B" = 0.2, "A&C" = 0, "B&C" = 0, "A&B&C" = 0) ) # Using the matrix method mat <- cbind(A = sample(c(TRUE, TRUE, FALSE), size = 50, replace = TRUE), B = sample(c(TRUE, ...
Jolars
jolars.github.io › eulerr › articles › introduction.html
Introducing eulerr • eulerr
In our example, the diagError is and our stress is 0.002, suggesting that the fit is accurate. We can now be confident that eulerr provides a reasonable representation of our input using circles. Were it otherwise, we might try to use ellipses instead.
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 - Package overview README.md A Gallery of Euler and Venn Diagrams eulerr under the hood Introducing eulerr Loss Functions Venn diagrams with eulerr Visualizing Euler diagrams with eulerr
RDocumentation
rdocumentation.org › packages › eulerr › versions › 1.1.0 › topics › plot.euler
plot.euler function - RDocumentation
Plot euler diagrams with trellis graphics from lattice. This function calls xyplot under the hood, allowing plots of both individual euler diagrams as well as grids of diagrams in case the by argument was used in the call to euler.
CRAN
cran.r-project.org › web › packages › eulerr › vignettes › venn-diagrams.html
Venn diagrams with eulerr
3 weeks ago - library(eulerr) set.seed(1) s2 <- c(A = 1, B = 2) plot(venn(s2)) plot(euler(s2), quantities = TRUE)
CRAN
cran.r-project.org › package=eulerr
eulerr: Area-Proportional Euler and Venn Diagrams with Ellipses
3 weeks ago - 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. Diagrams may be fit with ellipses and circles via a wide range of inputs and can be visualized ...
RDocumentation
rdocumentation.org › packages › eulerr › versions › 5.1.0 › topics › eulerr-package
eulerr-package function - RDocumentation
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. Diagrams may be fit with ellipses and circles via a wide range of inputs and can be visualized ...
RDocumentation
rdocumentation.org › packages › eulerr › versions › 1.1.0 › topics › euler
Area-Proportional Euler Diagrams
Fit euler diagrams (a generalization of venn diagrams) using numerical optimization to find exact or approximate solutions to a specification of set relationships.
CRAN
cran.r-project.org › web › packages › eulerr › refman › eulerr.html
Help for package eulerr
September 24, 2025 - plot.euler(), print.euler(), eulerr_options(), venn()

