2020-08-13用R的eulerr包绘制不对称Venn图

Johan Larsson(原作者)

Venn图包有好几个,想画一个按照数值设定比例大小,还真没有几个,一般的包的圆圈 的大小都一样。找到一个可以设定不对称圆圈大小的R包,Venn图是它的功能之一。

废话少说,直接看图。。。

library(eulerr)
s2 <- c(A = 1, B = 2)
plot(venn(s2))#对称大小
image.png
plot(euler(s2), quantities = TRUE)#加一个参数就成了不对称的大小
image.png
image.png
image.png
plot(venn(fruits[, 1:3]))
image.png
plot(euler(fruits[, 1:3], shape = "ellipse"), quantities = TRUE)
image.png
s4 <- list(a = c(1, 2, 3),
           b = c(1, 2),
           c = c(1, 4),
           e = c(5))
plot(venn(s4))
image.png
plot(euler(s4, shape = "ellipse"), quantities = TRUE)
image.png
plot(venn(organisms))
image.png
plot(euler(organisms, shape = "ellipse"), quantities = TRUE)
image.png

不对称的Venn图就这么简单!!!

你可能感兴趣的:(2020-08-13用R的eulerr包绘制不对称Venn图)