Questions tagged [venn-diagram]

For questions about Venn diagrams.

377 questions
84
votes
7 answers

Compare two character vectors in R

I have two character vectors of IDs. I would like to compare the two character vectors, in particular I am interested in the following figures: How many IDs are both in A and B How many IDs are in A but not in B How many IDs are in B but not in…
Aslan986
  • 9,984
  • 11
  • 44
  • 75
61
votes
7 answers

Venn diagram proportional and color shading with semi-transparency

I have following type of count data. A 450 B 1800 A and B both 230 I want to develop a colorful (possibly semi-transparency at intersections) like the following Venn diagram. Note: This figure is an example hand drawn in PowerPoint, and it…
jon
  • 11,186
  • 19
  • 80
  • 132
57
votes
3 answers

Python Matplotlib Venn diagram

I want to plot variables that belongs to certain groups. Say that I have 6 variables that I want to sort into these 3 groups and plot like a venn diagram. I would like to annotate the variable names into the three bubbles. In this simple example we…
jonas
  • 13,559
  • 22
  • 57
  • 75
33
votes
3 answers

How can I trigger a :hover transition that includes three overlapping div elements (Venn diagram)

My problem is that I have this Venn diagram consisting of three div elements and I want to scale them with :hover, so that when I hover over an intersection all the circles that meet in the intersection scale to my defined value. In the moment I…
mseabra
  • 333
  • 2
  • 7
30
votes
8 answers

Venn Diagrams with R?

Are there any other packages for doing Venn diagrams in R besides the limma package? Anyone got tips? Here's some notes on doing Venn diagrams with the limma packages.
JD Long
  • 59,675
  • 58
  • 202
  • 294
25
votes
3 answers

Venn diagram generation software from RCC(8) specification or similar

Please note: While the bounty is no longer available, I'm still keen for anyone with an answer to this question to contribute; I'm still watching it, and I'm waiting to see if there is a better answer. Thanks, and please read on... I am looking for…
user206428
22
votes
3 answers

Venn Diagram with Item labels

Suppose I have two vectors foo <- c('a','b','c','d') baa <- c('a','e','f','g') Does anyone know of a way to produce a venn diagram but have the vector items visualised within the diagram. Like so? (made in powerpoint)
A_Skelton73
  • 1,150
  • 4
  • 12
  • 23
16
votes
2 answers

R: don't write log file for VennDiagram

I use R (version 3.1.2) and the package VennDiagram (version 1.6.16). Since my last update the VennDiagram package creates a log file called VennDiagramDATE_TIME.log (with DATE and TIME being date and time at creation) in the current working…
Jonas
  • 1,639
  • 1
  • 18
  • 29
15
votes
4 answers

Nice looking five sets Venn diagrams in R

In a paper I recently came across a nice 5 sets Venn diagram: Would anyone know how to code producing such Venn diagram displays in R? Most of the packages I looked at seem to produce the less clear version Any thoughts? EDIT: seems the Nature…
Tom Wenseleers
  • 7,535
  • 7
  • 63
  • 103
14
votes
3 answers

How to modify the font size in matplotlib-venn

I have the following Venn diagrams: from matplotlib import pyplot as plt from matplotlib_venn import venn3, venn3_circles set1 = set(['A', 'B', 'C', 'D']) set2 = set(['B', 'C', 'D', 'E']) set3 = set(['C', 'D',' E', 'F', 'G']) venn3([set1, set2,…
neversaint
  • 60,904
  • 137
  • 310
  • 477
14
votes
2 answers

Venn diagram layout with d3.js

Is there a sample on how to do Venn diagram using d3.js? I know about the two samples: that are provided on D3 website. However they force me to calculate by myself the x.y position of the circles. I am hoping to feed just the data (circle sizes…
Yaron Naveh
  • 23,560
  • 32
  • 103
  • 158
13
votes
1 answer

How to force the labels to fit in VennDiagram?

I use VennDiagram to make a venn diagram with the following example code: library(VennDiagram) venn.diagram(list(shams_90d = 1:3, shams_90d_4h = 2:4, sham3__shams_90d = 3:5, sham3_90d__shams = 5:7, sham3_90d__shams_4h = 6:9), …
Niek de Klein
  • 8,524
  • 20
  • 72
  • 143
13
votes
1 answer

Adding title and sub title to Venn Diagram

I am trying to add a main and sub title to my venn diagram that I created using the following code in R. I have read through the R ‘VennDiagram’ package documentation without success. I've also tried using gird.arrange() with a textGrob and the…
user3209543
  • 185
  • 1
  • 2
  • 6
11
votes
2 answers

Redrawing venn diagram

What would be the easiest way to redraw a venn diagram using R ? I do not have a data which was used to generate venn diagram but the rest of diagrams were drawn in R... I would like to keep the same structure so it means I have to somehow redraw it…
Rechlay
  • 1,457
  • 2
  • 12
  • 19
11
votes
2 answers

What is a better algorithm than brute force to separate items in overlapping categories?

I have an arbitrary set of items (dots below), and some number of categories overlapping in an arbitrary way (A-C below). The test is to determine whether it's possible for each item to be assigned to a single category, among the ones it already…
Shep
  • 7,990
  • 8
  • 49
  • 71
1
2 3
25 26