Questions tagged [eulerr]

Area-Proportional Euler and Venn Diagrams with Ellipses. (R package)

Area-Proportional Euler and Venn Diagrams with Ellipses

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 in numerous ways.

Author Johan Larsson

34 questions
4
votes
0 answers

Rotate Venn diagram plot made with the eulerr package

I'm able to make a Venn diagram like below with the eulerr package in R with this code. However, the plot is rotated vertically. How can I rotate the plot so that it's wider than taller? library(eulerr) set.seed(3) group1_size <- 13622 group2_size…
Harry M
  • 1,848
  • 3
  • 21
  • 37
3
votes
1 answer

How to change the label position when plotting venn diagram from eulerr package in R?

I am trying to create a scaled venn diagram using the eulerr package in R. My Code is below: plot(euler(c( "LUTS"=98, "Symptoms of UTI"=46, "Positive urine culture"=39, "Symptoms of UTI&LUTS"=33, "LUTS&Positive urine culture"=24, …
Kathleen M
  • 33
  • 5
3
votes
2 answers

How to add count values in venn diagram for more than 6 sets?

I used following code to generate the sets for more than 5 groups: library(venneuler) H=list('ASD'=c("SCN3A", "TSC2", "RASSF8", "XDH", "CNTN5", "CHD7", "DPYD", "BUB1", "DPP4", "AMPD1", "ARID4A", "QSER1", "OCA2", "GPR141", "DNAH9", "LOXHD1", "SETX",…
user2110417
3
votes
1 answer

Draw labels with split normal and italic faces in euler plot (eulerr)

The eulerr library produces a plot with the following code: library(tidyverse) library(eulerr) matrix(data = c(T,T,T,F,T,F,T,F,T,T,T,F,F,F,T), ncol=3) %>% venn %>% plot( labels = c( "Left", "Right", "Oh, right"), main…
steve_b
  • 105
  • 6
3
votes
1 answer

Accurate Venn diagrams using eulerr

I'm trying to use the eulerr package to create Venn diagrams. I have 2 lists that I would like to use to create the Venn diagram with. 1 of the lists is a subset of the first. Strangely, eulerr seems to think that there is one value present in…
John Gagnon
  • 825
  • 1
  • 8
  • 20
3
votes
1 answer

Customizing Euler Diagram colors with eulerr R

I'm trying to plot an Euler Diagram using the eulerr package by Johan Larsson in R. I'm following this example where the developer explains how to customize colors/border transparency. However, when I try to implement it with the following…
silviaegt
  • 317
  • 3
  • 12
2
votes
1 answer

eulerr plot does not work when executed inside a function

I want to create an euler plot inside a function with the eulerr package: library(eulerr) test <- function(listA,listB,file,labels,title){ euler <- euler(list("A"=listA, "B"=listB)) #plot euler object and save to file …
justinian482
  • 845
  • 2
  • 10
  • 18
2
votes
2 answers

Euler 10, Sum of primes to 2000000

I have a problem with my algorithm. I can't find where a go wrong in the task below. Description: The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below two million. Here is my solution in C: #include…
ptk1113
  • 25
  • 3
2
votes
1 answer

How to draw a grob on top of ggplot?

I have a grob object (in my case it's euler plot) and a ggplot object, and I want to place one on top of another, for example: library(eulerr) library(ggplot2) df <- data.frame(a=sample(100),b=sample(50:149), c=sample(20:119)) venn <- euler(list( …
Vasily A
  • 8,256
  • 10
  • 42
  • 76
2
votes
2 answers

Wrong colors for Venn diagram when the area of one circle is 0

Why the color changes when the area of one circle is 0 ("A" = 0) compared to if it is 0.1 ("A" = 0.1) --> compare example 1 and 2. Also if A and B is 0, the circle is black instead of green (see example 3).. library(eulerr) # example 1 fit <-…
titeuf
  • 133
  • 1
  • 10
2
votes
1 answer

Color palettes in the eulerr package

I really like the eulerr package. It makes beautiful plots. I don't, however, have an eye for color, and would therefore like to use existing color schemes like "viridis" or "magma." Is this possible, or are these schemes restricted to continuous…
strugglebus
  • 45
  • 1
  • 9
2
votes
3 answers

R eulerr package - Displays wrong euler Diagram

I am trying to create an Euler diagram with the R package eulerr. I am using the following code: vd <- euler(c(A = 54, B = 22, C = 53, D= 26 ,"A&B" = 20, "A&C" = 29, "A&D"=10, "B&C" = 16, "B&D"=5, "C&D"=7,"A&B&C" = 14, "A&B&D"=5, "A&C&D"=4,…
herbertus
  • 63
  • 1
  • 7
2
votes
1 answer

Euler diagram with eulerr in R

I'm trying to plot a Venn diagram using the eulerr package in R. library(eulerr) vd <- euler(c("gen"=7,"RC"=1,"PP"=2,"Mixed"=5,"None"=12,"gen&PP"=30, "gen&PP&RC"=6,"PP&RC"=2,"gen&RC"=6), shape="circle"); Inspecting the value of…
user1472346
  • 147
  • 8
1
vote
1 answer

How to make a function to make a complex euler diagram?

I am currently making an euler diagram. I managed to make an euler diagram containing 6 variables using these codes, although I believe these codes are not efficient: dataset <- data.frame( A = rep(c(1, 2, NA), length.out = 100), B =…
1
vote
1 answer

How can I make the legend horizontal in the euler plot in R?

I'm having difficulty styling this euler plot. One of my main issues is that I'd like the legend to be on the bottom, but display the variables horizontally. They look strange stacked vertically. If anyone also knows how to adjust the margins, add a…
1
2 3