We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 9 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(8)
维恩图包列表:
bvenn
colorfulVennPlot
List of Venn Diagram packages:
bvenn
colorfulVennPlot
R-forge 上有 Vennerable 包。
There is Vennerable package on R-forge.
如果您需要创建 4/5 集的维恩图,gplots 包中的维恩函数也很有用。
The venn function in the gplots package is also useful if you need to create Venn Diagram of 4/5 sets.
我使用两个自定义函数来解决这个问题。我的 venndia 实现绘制了维恩图并返回 A 和 B(和 C)之间的重叠列表。请参阅下面的代码。
有了这些,您
就可以绘制并返回数据。你可以通过这样做关闭返回数据,
因为默认情况下 getdata 为 FALSE。
/丹尼尔
I use two custom functions that to the trick. My implementation of venndia plots the venn diagram and returns lists of overlaps between A and B (and C). See the code below.
With these, you can
which will both plot and return the data. you can switch off returning the data by doing
since getdata is FALSE by default.
/Daniel
这来得很晚,但对于其他寻找答案的人来说可能有用:
维恩图,CRAN 此处。
它允许多组(维恩图 4 组,欧拉图 3 组)、可定制的颜色和字体、简单的语法,并且最重要的是圆圈的大小与数据集的大小成正比(至少在比较 2 个数据时)套)。安装:
对于那些使用bioconductor包并使用基因组坐标的人,最近vennDiagram是在包 ChIPpeakAnno 中实现 (版本 2.5.12)并允许基因组坐标(例如 Chip-seq 峰)的漂亮交叉。对于早期采用者,您可能需要安装开发包。
This comes very late but it might useful for others searching for an answer:
VennDiagram, on CRAN here.
It allows multiple sets (four sets for venn, 3 sets for Euler diagrams), customizable colours and fonts, simple syntax and and best of all the size of the circles is proportional to the size of the data sets (at least when comparing 2 data sets). To install:
For those using bioconductor packages and working with genomic coordinates, recently vennDiagram was implemented in the package ChIPpeakAnno (version 2.5.12) and allows pretty intersections of Genomic coordinates of, for instance, Chip-seq peaks. For early adopters you might need to install the development package.
Duncan Murdoch 有一个 venn 包,不在 CRAN 上。 (向 Gabor Grothendieck 致敬 )
您还可以在《统计软件杂志》中阅读相关内容。
Duncan Murdoch has a venn package, which is not on CRAN. (hat tip to Gabor Grothendieck)
You can also read about it in the "Journal of Statistical Software".
以下是 3 变量数据的另一个版本的参考:
http://elliotnoma.wordpress.com/2011/02/09/venn-图/
代码也可以在colorfulVennPlot包中找到:
http://cran.r-project.org/web/packages/colorfulVennPlot /index.html
Here is reference to another version for 3-variable data:
http://elliotnoma.wordpress.com/2011/02/09/venn-diagram/
The code is also available in the package colorfulVennPlot:
http://cran.r-project.org/web/packages/colorfulVennPlot/index.html
我推荐 VennDiagram 包:
http://cran.r-project.org/web/packages/VennDiagram /VennDiagram.pdf
在 pake 19 上,您会发现 10 个非常好的示例包(包括高级示例和简化示例)。到目前为止,我还没有发现任何它不能做但我需要它做的事情。
I would recommend the package VennDiagram:
http://cran.r-project.org/web/packages/VennDiagram/VennDiagram.pdf
On pake 19 you will find 10 pakes of very good examples (both advanced and simplified ones). As of yet I have not found anything that it can't do that I need it to do.