R中的面积比例三元维恩图 [英] Area proportional 3-way Venn Diagram in R

查看:170
本文介绍了R中的面积比例三元维恩图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在R中创建维恩图时,我读了很多线程. Venn图比例和具有半透明性的颜色着色非常全面,确实为我提供了许多我需要的其他图形.

I read quite a few threads on creating Venn Diagram in R. Is it possible to create a proportional triple Venn Diagram talks about using eulerr package. Venn diagram proportional and color shading with semi-transparency is very comprehensive and did help me with a lot of the other graphs I needed.

尽管上述线程很棒,但我相信上面的线程仍然无法解决一个问题.当三个集合的交集占整个区域的很大一部分时,就会发生这种情况.就我而言,R& S&W是总面积的92%.因此,该图是难以察觉和丑陋的.有什么办法可以解决这个问题?

While above threads are fantastic, I believe that there is one problem that is still not solved by above threads. It happens when the intersection of three sets represents a huge portion of overall area. In my case, R&S&W is 92% of total area. Hence, the graph is imperceptible and ugly. Is there any way we can fix this?

这是我的数据和代码:

dput(Venn_data)
structure(c(94905288780.4383, 3910207511.54001, 2615620176.44757, 
1125606833.85568, 187542691.618916, 104457994.331746, 96049675.0823557
), .Names = c("R&S&W", "R&S", "S&W", "S", "R", "W", "R&W"))

VennDiag2 <- eulerr::euler(Venn_data,shape="ellipse")
windows()
plot(VennDiag2)

这是输出:

我看不到什么是R& S,S& W,R,S,W等.

I cannot see what's R&S, S&W, R, S, W etc.

我也尝试了venneuler软件包.

这是我的代码:

windows()
 v<-venneuler(Venn_data)
 plot(v)

不幸的是,这也没有帮助.这是输出.

Unfortunately, this didn't help either. Here's the output.

有什么办法可以解决这个问题?我不是专家,所以我想在这里提问.衷心感谢您的帮助.我已经花了好几个小时来解决这个问题,但仍然无法正常工作.

Is there any way we can fix this? I am not an expert so I thought of asking here. I'd sincerely appreciate any help. I have spent quite a few hours on this and am still not able to get this to work.

推荐答案

您始终可以自己检索绘图参数,并使用箭头或其他方式放置标签,但是另一种选择是使用图例代替标签.

You could always retrieve the plot parameters yourself and position the labels using arrows or something, but another option would be to use a legend instead of labels.

plot(VennDiag2, legend = TRUE)

尽管如此,在这里是否对Euler图有很多用途还是有疑问的.

Is is somewhat questionable whether there is much use for an Euler diagram at all here though.

这篇关于R中的面积比例三元维恩图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆