The R expression
exp(1)
represents e, and
exp(2)
represents e^2.
This works because exp is the exponentiation function with base e.
CRAN
cran.r-project.org › web › packages › eulerr › eulerr.pdf pdf
Area-Proportional Euler and Venn Diagrams with Ellipses
Defaults for these values, as well as other parameters of the plots, can be set globally using eulerr_options().
Jolars
jolars.github.io › eulerr
Area-Proportional Euler and Venn Diagrams with Ellipses • eulerr
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" ) #> [,1] [,2] [,3] [,4] [,5] [,6] #> [1,] 0.000000 2.431149 3.185274 3.074545 3.385137 1.872972 #> [2,] 2.431149 0.000000 2.180277 2.417538 3.877666 2.431149 #> [3,] 3.185274 2.180277 0.000000 1.658273 3.185274 3.185274 #> [4,] 3.074545 2.417
Top answer 1 of 3
203
The R expression
exp(1)
represents e, and
exp(2)
represents e^2.
This works because exp is the exponentiation function with base e.
2 of 3
38
-digamma(1) is the Euler's Constant in R.
e, (exp(1) in R), which is the natural base of the natural logarithm
Euler's Constant. Euler's Number
RDocumentation
rdocumentation.org › packages › eulerr › versions › 1.0.0 › topics › eulerr
eulerr Area-Proportional Euler Diagrams
Micallef L, Rodgers P. eulerAPE: Drawing Area-Proportional 3-Venn Diagrams Using Ellipses. PLOS ONE [Internet]. 2014 Jul [cited 2016 Dec 10];9(7):e101717. Available from: http://dx.doi.org/10.1371/journal.pone.0101717 ... 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, FALSE), size = 50, replace = TRUE)) fit3 <- eulerr(mat) # Using grouping via the
GitHub
github.com › jolars › eulerr › blob › main › R › euler.R
eulerr/R/euler.R at main · jolars/eulerr
#' \item{stress}{normalized residual sums of squares} #' #' @seealso [plot.euler()], [print.euler()], [eulerr_options()], [venn()] #' #' @examples · #' # Fit a diagram with circles · #' combo <- c(A = 2, B = 2, C = 2, "A&B" = 1, "A&C" = 1, "B&C" = 1) #' fit1 <- euler(combo) #' #' # Investigate the fit ·
Author jolars
CRAN
cran.r-project.org › package=eulerr
CRAN: Package eulerr - R Project
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.
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%
Jolars
jolars.github.io › eulerr › reference › plot.euler.html
Plot Euler and Venn diagrams — plot.euler • eulerr
Plot diagrams fit with euler() and venn() using grid::Grid() graphics. This function sets up all the necessary plot parameters and computes the geometry of the diagram. plot.eulergram(), meanwhile, does the actual plotting of the diagram. Please see the Details section to learn about the individual settings for each argument.
RDocumentation
rdocumentation.org › packages › eulerr › versions › 7.0.4 › topics › euler
euler function - RDocumentation
Micallef L, Rodgers P. eulerAPE: Drawing Area-Proportional 3-Venn Diagrams Using Ellipses. PLOS ONE (Internet). 2014 Jul (cited 2016 Dec 10);9(7):e101717. Available from: tools:::Rd_expr_doi("10.1371/journal.pone.0101717") plot.euler(), print.euler(), eulerr_options(), venn() Run this code ·
CRAN
cran.r-project.org › web › packages › eulerr › vignettes › introduction.html
Introducing eulerr
September 23, 2025 - 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
eulerr: Area-Proportional Euler and Venn Diagrams with Ellipses version 7.0.2 from CRAN
May 29, 2024 - 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 ...
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 - 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, fills = "transparent", lty = 1:2) # Save plot parameters to plot using some other method diagram_description <- plot(fit) # Plots using 'by' argument plot(euler(fruits[, 1:4], by = list(sex)), legend = TRUE) eulerr documentation built on May 29, 2024, 1:35 a.m.
Rdrr.io
rdrr.io › cran › eulerr › src › R › euler.R
eulerr source: R/euler.R
#' \item{ellipses}{a matrix of `h` and `k` (x and y-coordinates for the #' centers of the shapes), semiaxes `a` and `b`, and rotation angle `phi`} #' \item{original.values}{set relationships in the input} #' \item{fitted.values}{set relationships in the solution} #' \item{residuals}{residuals} #' \item{regionError}{the difference in percentage points between each #' disjoint subset in the input and the respective area in the output} #' \item{diagError}{the largest `regionError`} #' \item{stress}{normalized residual sums of squares} #' #' @seealso [plot.euler()], [print.euler()], [eulerr_option
Rdrr.io
rdrr.io › cran › eulerr › src › R › plot.euler.R
eulerr source: R/plot.euler.R
R/plot.euler.R defines the following functions: print.eulergram plot.eulergram plot.venn locate_centers test_intersection plot.euler
R-universe
jolars.r-universe.dev › eulerr
eulerr: Area-Proportional Euler and Venn Diagrams with Ellipses
Postdoc in statistics at the Department of Mathematical Sciences, University of Copenhagen · 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.
Jolars
jolars.github.io › eulerr › reference › euler.html
Area-proportional Euler diagrams — euler • eulerr
Micallef L, Rodgers P. eulerAPE: Drawing Area-Proportional 3-Venn Diagrams Using Ellipses. PLOS ONE (Internet). 2014 Jul (cited 2016 Dec 10);9(7):e101717. Available from: doi:10.1371/journal.pone.0101717 · plot.euler(), print.euler(), eulerr_options(), venn() # Fit a diagram with circles combo <- c(A = 2, B = 2, C = 2, "A&B" = 1, "A&C" = 1, "B&C" = 1) fit1 <- euler(combo) # Investigate the fit fit1 #> original fitted residuals regionError #> A 2 2.076 -0.076 0.021 #> B 2 2.076 -0.076 0.021 #> C 2 2.076 -0.076 0.021 #> A&B 1 0.605 0.395 0.040 #> A&C 1 0.605 0.395 0.040 #> B&C 1 0.605 0.395 0.0
