Questions tagged [venn-diagram]

For questions about Venn diagrams.

377 questions
5
votes
1 answer

How can I make the Venn-Diagram colourful in R {venn-gplots}?

I used venn function in gplots library. here is a simple example. library(gplots) venn( list(A=1:5,B=4:6,C=c(4,8:10),D=c(4:12)) ) and here is the output: my question is how can I make this picture colourful for each group? (basically make it more…
user3576287
  • 932
  • 3
  • 16
  • 30
5
votes
1 answer

Annotate venn diagram in R

My question involves how to annotate a venn diagram with the actual values in addition to the default counts, using any R package. Below is a minimal example of the data: list.items <- list(method1=c("item1","item2","item3","item4","item5","item6"),…
amo
  • 3,030
  • 4
  • 25
  • 42
5
votes
4 answers

Manual Ordering of Sets in R/VennDiagram

I'm using VennDiagram to illustrate the overlap between distinct sets of customers -- in total and for a particular sub-segment. The problem that I'm having is that it appears VennDiagram automatically orders the circles in the output from largest…
MStu
  • 43
  • 1
  • 3
5
votes
5 answers

Adding percents to Venn Diagrams in R

I am trying to add percentages to each section of my Venn Diagram. I have tried using paste to concatenate the circle titles with the percentages. However, unfortunately, this does not completely work, for it only provides the percentages for each…
user3209543
  • 185
  • 1
  • 2
  • 6
5
votes
2 answers

Can I automatically generate an Euler (Venn) diagram from a containment graph

Say I have a directed graph G where each node represents some set I've got. There is an edge from u to v iff u is a subset of v. This graph is transitive and acyclic. There are a number of source nodes (ones which don't contain any of the other…
jmite
  • 8,171
  • 6
  • 40
  • 81
4
votes
1 answer

How to make a dot density Venn diagram in R?

I have a proteomic dataset with proteins all of which are in set A and some of which fall in sets B, C, and D. Using the r package eulerr, I was able to construct a Venn diagram of to visualize the intersection of these sets. See here. However, it…
4
votes
1 answer

Venn Diagrams with `venneuler` in `R`: delete the name of the set from the plot and add elements name

For the past few days I have been trying to figure out how to draw a Venn diagram from an arbitrary number of sets and came across the R package venneuler. This code: genes <- paste("gene",1:20,sep="") df = data.frame(term=character(),…
Mark
  • 1,577
  • 16
  • 43
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
4
votes
2 answers

How to identify and tally intersection items in R

I have a data frame which shows membership in three color classes. Numbers refer to unique IDs. One ID may be a part of one group or multiple groups. dat <- data.frame(BLUE = c(1, 2, 3, 4, 6, NA), RED = c(2, 3, 6, 7, 9, 13), …
DJC
  • 1,491
  • 6
  • 19
4
votes
2 answers

How to label Venn diagrams with percentages of set sizes in python?

I am using the matplotlib_venn.venn2 function to plot four different Venn diagrams in a single figure. My inputs for the function's subset arguments are sets of strings: cse_set_ucb = set(['data science','algorithms', 'machine learning',...]) …
Ambareesh
  • 324
  • 1
  • 4
  • 18
4
votes
3 answers

MySQL: Efficient way computing set powers of Venn-Diagram

Given the 4 tables, each containing items and representing one set, how to get the count of the items in each compartment required to draw a Venn diagram as shown below. The calculation should take place in the MySQL server avoiding transmission of…
Rainer Rillke
  • 1,281
  • 12
  • 24
4
votes
5 answers

How to plot venn diagram with 4 sets

I have four sets of IDs (stored in separate text files) and I would like to create a Venn diagram showing how these sets overlap. I was able to paste the lists into this web app and get a simple diagram, but I'm looking for something over which I…
Daniel Standage
  • 8,136
  • 19
  • 69
  • 116
4
votes
3 answers

Printing Venn Diagram after calculating overlap

I'm trying to use the calculate.overlap function within the VennDiagram package to first calculate and then print a Venn Diagram. I was able to calculate the overlap of my data set but looking for help how to print the Venn graphic. Can anyone…
mrmatt11
  • 77
  • 2
  • 10
4
votes
1 answer

Venn diagrams in multiple figure

is there a way to have the following venn diagrams as a 3rd figure after the two histograms below?? I'd like to have the two venn diagram one on top of the other library(VennDiagram) plus.venn<-draw.pairwise.venn(368, 1171, 149) #venn diagram…
user3240953
  • 53
  • 1
  • 4
4
votes
1 answer

Venn Diagram up to 4 lists - outputting the intersections and unique sets

in my work I use a lot of Venn diagrams, and so far I've been relying on the web-based "Venny". This offers the nice option to export the various intersections (i.e., the elements belonging only to that specific intersection). Also, it does diagrams…
Einar
  • 4,727
  • 7
  • 49
  • 64