本文介绍了半透明的维恩图比例和颜色阴影的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有以下类型的计数数据.
A 450乙 1800A 和 B 均为 230
我想开发一个像下面的维恩图一样的彩色(交叉点可能是半透明的).
注意:此图是在 PowerPoint 中手绘的示例,不按比例绘制.
解决方案
这是一篇讨论 .>
库(维恩图)venn.diagram(list(B = 1:1800, A = 1571:2020), fill = c("lightblue", "green"),alpha = c(0.5, 0.5), lwd =0, "venn_diagram.tiff")
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 is not to scale.
解决方案
Here is a post which discusses Venn diagram from list of clusters and co-occurring factors.
For easy solution use package venneuler:
require(venneuler)
v <- venneuler(c(A=450, B=1800, "A&B"=230))
plot(v)
For more advanced and customized solutions check package VennDiagram.
library(VennDiagram)
venn.diagram(list(B = 1:1800, A = 1571:2020), fill = c("lightblue", "green"),
alpha = c(0.5, 0.5), lwd =0, "venn_diagram.tiff")
这篇关于半透明的维恩图比例和颜色阴影的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!