Johan Larsson(原作者)
Venn图包有好几个,想画一个按照数值设定比例大小,还真没有几个,一般的包的圆圈 的大小都一样。找到一个可以设定不对称圆圈大小的R包,Venn图是它的功能之一。
废话少说,直接看图。。。
library(eulerr)
s2 <- c(A = 1, B = 2)
plot(venn(s2))#对称大小

plot(euler(s2), quantities = TRUE)#加一个参数就成了不对称的大小



plot(venn(fruits[, 1:3]))

plot(euler(fruits[, 1:3], shape = "ellipse"), quantities = TRUE)

s4 <- list(a = c(1, 2, 3),
b = c(1, 2),
c = c(1, 4),
e = c(5))
plot(venn(s4))

plot(euler(s4, shape = "ellipse"), quantities = TRUE)

plot(venn(organisms))

plot(euler(organisms, shape = "ellipse"), quantities = TRUE)

不对称的Venn图就这么简单!!!
网友评论