简体   繁体   English

在R中缩放维恩图

[英]scaling Venn diagram in R

I am trying to plot the Venn Diagram of intersection of 3 sets with the following function: 我试图用以下函数绘制3组交集的维恩图:

    library(VennDiagram)
    draw.triple.venn(10,5,4,2,3,1,1,ind=TRUE,scaled=TRUE).

In the Quartz window I receive 3 identical circles (all of the same size). 在Quartz窗口中,我收到3个相同的圆圈(全部大小相同)。 Where did the scaling go? 缩放在哪里? After several hours of trying, I am wondering if it is a bug or if maybe the previous settings of my plotting area are not allowing it ( i closed and reopened the Quartz window several times). 经过几个小时的尝试,我想知道它是否是一个错误,或者我的绘图区域的先前设置可能不允许它(我关闭并重新打开Quartz窗口几次)。 The output value is: 输出值为:

    (polygon[GRID.polygon.1498], polygon[GRID.polygon.1499], polygon[GRID.polygon.1500], polygon[GRID.polygon.1501], polygon[GRID.polygon.1502], polygon[GRID.polygon.1503], text[GRID.text.1504], text[GRID.text.1505], text[GRID.text.1506], text[GRID.text.1507], text[GRID.text.1508], text[GRID.text.1509], text[GRID.text.1510], text[GRID.text.1511], text[GRID.text.1512])

Any help or tip would be appreciated. 任何帮助或提示将不胜感激。 All the examples I see online are depicted already scaled. 我在网上看到的所有示例都已经过缩放。

According to the manual, scaling only happens for some configurations. 根据手册,缩放仅适用于某些配置。 One example would be 一个例子是

draw.triple.venn(1,2,3,0,0,0,0)

On the other hand, looking at the source code of that function, there appears to be no relevant use of that parameter at all. 另一方面,查看该函数的源代码,似乎根本没有相关的参数使用。 And indeed, passing scale=FALSE to the above command still results in scaled circles. 实际上,将scale=FALSE传递给上面的命令仍然会导致缩放的圆圈。

So it looks like with the current source code, you have no control over scaling, one way or the other. 所以看起来使用当前的源代码,你无法控制缩放,无论如何。

The scale parameter is being ignored in many cases. 在许多情况下,scale参数被忽略。 Here is another example that is also not plotted to scale 这是另一个也没有按比例绘制的例子

venn.plot <- draw.triple.venn(1883,598,2151,218,221,611,95, c("AL", "RL", "R"),scale=TRUE)

I used this .jar instead: http://www.cs.kent.ac.uk/people/staff/pjr/EulerVennCircles/EulerVennApplet.html 我用这个.jar代替: http//www.cs.kent.ac.uk/people/staff/pjr/EulerVennCircles/EulerVennApplet.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM