用R包画韦恩图:

install.packages("VennDiagram")

-------------------------------------------
library(VennDiagram)

A = 1:150
B = c(121:170,300:320)
C = c(20:40,141:200)
Length_A<-length(A)
Length_B<-length(B)
Length_C<-length(C)
Length_AB<-length(intersect(A,B))
Length_BC<-length(intersect(B,C))
Length_AC<-length(intersect(A,C))
Length_ABC<-length(intersect(intersect(A,B),C))

T<-venn.diagram(list(A=A,B=B),filename=NULL
,lwd=1,lty=2
,col=c('red','green'),fill=c('red','green')
,cat.col=c('red','green')
,rotation.degree=90)
grid.draw(T)

-------------------------------------------
library(VennDiagram)

A = 1:150
B = c(121:170,300:320)
C = c(20:40,141:200)
Length_A<-length(A)
Length_B<-length(B)
Length_C<-length(C)
Length_AB<-length(intersect(A,B))
Length_BC<-length(intersect(B,C))
Length_AC<-length(intersect(A,C))
Length_ABC<-length(intersect(intersect(A,B),C))

T<-venn.diagram(list(A=A,B=B,C=C),filename=NULL
,lwd=1,lty=2,col=c('red','green','blue')
,fill=c('red','green','blue')
,cat.col=c('red','green','blue')
,reverse=TRUE)
grid.draw(T)

-------------------------------------------
library(VennDiagram)
draw.pairwise.venn(area1=Length_A,area2=Length_B,cross.area=Length_AB
,category=c('A','B'),lwd=rep(1,1),lty=rep(2,2)
,col=c('red','green'),fill=c('red','green')
,cat.col=c('red','green') )

-------------------------------------------
library(VennDiagram)
draw.triple.venn(area1=Length_A, area2=Length_B, area3=Length_C
,n12=Length_AB, n23=Length_BC, n13=Length_AC, n123=Length_ABC
,category = c('A','B','C')
,col=c('red','green','blue'),fill=c('red','green','blue')
,cat.col=c('red','green','blue')
,reverse = FALSE)
-------------------------------------------

## scaled venn diagram

library(VennDiagram)
draw.pairwise.venn(area1=2000,area2=200,cross.area=20
,category=c('A','B'),lwd=rep(1,1),lty=rep(2,2)
,col=c('red','green'),fill=c('red','green')
,cat.col=c('red','green') )

-------------------------------------------

install.packages("venneuler")

-------------------------------------------
library(venneuler)
library("venneuler")
vd <- venneuler(c(A=0.3, B=0.3, C=1.1, "A&B"=0.1, "A&C"=0.2, "B&C"=0.1 ,"A&B&C"=0.1))
plot(vd)

-------------------------------------------
library("venneuler")
vd <- venneuler(c(A=18700, B=8, "A&B"=377))
plot(vd)
-------------------------------------------

文氏图(韦恩图,venn图)的基本概念:

https://www.lucidchart.com/pages/venn-diagram

https://www.mathsisfun.com/sets/venn-diagrams.html

Venn diagram glossary

Set A collection of things. Given the versatility of Venn Diagrams, the things can really be anything. The things may be called items, objects, members or similar terms.  
Union All items in the sets.  
Intersection The items that overlap in the sets. Sometimes called a subset.  
Symmetric difference of two sets Everything but the intersection.  
Absolute complement Everything not in the set.  
Relative complement  In one set but not the other.  
Scaled Venn Diagram Also called Area Proportional. The circles (or other shapes) are sized by their proportional representation of the whole.  
Reuleaux Triangle Shape formed from the intersection of three circulars or shapes, such as in a Venn Diagram.  
Set notations

The concepts illustrated in Venn Diagrams are expressed with mathematical notations such as those representing sets and subsets (in brackets), unions (with a U-like symbol) and intersections (with an upside-down U symbol.)

 
Set theory The longstanding branch of mathematics dealing with sets.  

在线画韦恩图(Draw venn diagram online):

BioVenn - a web application for the comparison and visualization of biological lists using area-proportional Venn diagrams

http://www.biovenn.nl/

http://bioinformatics.psb.ugent.be/webtools/Venn/

http://bioinfogp.cnb.csic.es/tools/venny/index.html

http://www.pangloss.com/seidel/Protocols/venn.cgi

http://jura.wi.mit.edu/bioc/tools/venn.php

其它画韦恩图的工具软件(Other tools):

eulerAPE: Drawing Area-Proportional Euler and Venn Diagrams

http://www.eulerdiagrams.org/eulerAPE/

相关资料(Related resources):

https://stackoverflow.com/questions/11727068/scaling-triple-venn-diagram-in-r-with-venndiagram-package

http://cran.r-project.org/web/packages/VennDiagram/VennDiagram.pdf

https://www.biostars.org/p/7713/

http://www.conceptdraw.com/helpdesk/how-to-draw-venn-diagram

http://www.conceptdraw.com/samples/diagrams-venn

https://softwarerecs.stackexchange.com/questions/25706/library-to-generate-a-scaled-4-set-venn-diagram

Papers:

http://journals.plos.org/plosone/article?id=10.1371/journal.pone.0101717

https://bmcbioinformatics.biomedcentral.com/articles/10.1186/1471-2105-12-35

转载于:https://www.cnblogs.com/emanlee/p/3931831.html

VennDiagram 画文氏图/维恩图/Venn相关推荐

  1. ggplot作图(条形图 误差线点图 折线图 箱线图 密度图 岭图 小提琴图 云雨图 直方图 PCA图 PcoA图 NDMS图 和弦图 维恩图 时间序列图 系统发育树 饼图 生物区系图 地图 )

    文章目录 基本原理 Plot = data + mapping +geometry + (Statistics, Scale, Coordinate) + Details 基础代码 常用图 条形图 点 ...

  2. PPT中的维恩图交叉图形怎么做的?Venn diagram

    维恩图:也叫文氏图,用于显示元素集合重叠区域的图示.维恩图既可以表示一个独立的集合,也可以表示集合与集合之间的相互关系. OVO图库(OVOPIC.COM)提供下载 维恩图文氏交叉重叠交集信息图表PP ...

  3. 【读书笔记->统计学】04-01 利用概率理论预测和决策-概率与事件、维恩图、互斥与相交事件、交集与并集概念简介

    利用概率理论预测和决策 老样子,书还是用一个情境帮助我们学习概率:假如你在一个赌场,你有一些筹码,"轮盘赌"正在进行,对此你也非常的感兴趣. 轮盘赌简介 庄家转动一个轮盘,随后朝相 ...

  4. tableau两个不同的图合并_举个栗子!Tableau技巧(59):学做两个集合的维恩图(文氏图)Venn diagram...

    我们常说的维恩图( Venn 图),学名叫:文氏图( Venn diagram ),又称温氏图.这种图表主要用于展示在不同的事物群组(集合)之间的数学或逻辑联系. 爱好篮球的数据粉们,可能看到过这样一 ...

  5. 在线画图工具-venn维恩图_圈圈Bio_新浪博客

    网址: http://www.qplot.cn:3838/sample-apps/001-venn/ plot venn 维恩图,也叫文氏图,用于显示元素集合重叠区域的图示.可以表示集合与集合之间的相 ...

  6. python 集合set 的三大方法intersection union difference来处理文氏图

    TODO - 练习:A或B,但不能同时包含 编写一个函数,将两个集合(set_a和set_b)作为输入,并返回一个新的集合,其中包含set_a或set_b中的元素,但不包含两者兼有的元素. 在上面的文 ...

  7. 26.27.28.29.极区图(南丁格尔玫瑰图)、维恩图 (Venn diagram)、面状图(Area chart)、树地图

    26.极区图(南丁格尔玫瑰图) 27.维恩图 (Venn diagram) 28.面状图(Area chart) 29.树地图 26.极区图(南丁格尔玫瑰图) 极区图(又名南丁格尔玫瑰图)呈放射延伸状 ...

  8. 如何在线创建维恩图 (Venn Diagram)?

    想创建维恩图?我们将向您介绍维恩图,并让您了解如何使用在线维恩图软件创建维恩图. 维恩图示例(由Visual Paradigm Online创建) [在Visual Paradigm Online中打 ...

  9. 大数据挖掘机器学习人工智能的维恩图战争

    马上要召开半年会了,老板说,大家要做好规划,以后我们方向不再是机器学习了,而是人工智能.原话怎么说的,我已经忘记,只记得当时听着特别难受,于是我当场就提出了,到底什么是机器学习?什么是人工智能?BD小 ...

  10. 213维恩图和集合图(VennUpset)

    维恩图和集合图 本节作者:徐俊,北京大学人民医院 版本1.0.5,更新日期:2020年6月30日 本项目永久地址:https://github.com/YongxinLiu/MicrobiomeSta ...

最新文章

  1. PHP中abstract 和 interface的区别
  2. html:(23):css代码语法和css注释语法
  3. Repeater的嵌套
  4. cuda gpu相关汇总
  5. Memcached未授权访问漏洞记录(CVE-2013-7239、危害级别全版本、端口:11211)
  6. [Email] 收发邮件的协议 : IMAP and SMTP , POP3 and SMTP
  7. centos 低版本出现fatal: unable to access 'https://github.com/XXXX': SSL connect error
  8. Maven下载及安装配置
  9. Matlab之min()、max()函数(求最小、最大值)
  10. 客户旅行地图教程 - 带15个示例
  11. 网络变压器 POE、POE+及UPOE+功能的概念和技术原理
  12. lo流讲解 和使用(大纲)
  13. 英文论文写作中的词汇句式总结
  14. FI和MM集成自动记账-采购收货发票校验业务-OBYC
  15. Css图片批量下载小工具--saveimg1.5
  16. LeetCode:916. Word Subsets - Python
  17. 【前端学习日志】HTML表格表单注册页面案例+CSS选择器
  18. Unity(一):结合高通的 vuforia sdk 构建增强现实 AR
  19. 火影忍者手游人最多的服务器,火影忍者手游:很多人都认为游戏在走下坡路,弃坑玩家越来越多?...
  20. oracle ecology已崩溃,ECOLOGY问题解决方法培训.ppt

热门文章

  1. 请不要叫我小编,我是神圣的内容产品经理
  2. android 置灰不可点击,Android全局实现控件变灰
  3. html表格日期选框,table单元格编辑新增下拉框(select支持单或多选)、时间选择(date)功能! · Pull Request !26 · 贤心/layui - Gitee.com...
  4. Arduino ESP8266利用SPIFFS上传文件和查看文件
  5. githubpage 配置 出现DNS解析失败
  6. 消除macbook桌面快捷键图标上的箭头
  7. 漫谈Go语言与区块链
  8. Unity 2D游戏制作流程用到的技巧
  9. 弯管机编程软件电脑版_花了一年时间开发的弯管机YBC编程软件
  10. 寂静岭2java攻略_寂静岭2攻略