我正在尝试在 R 中制作一个 4 路维恩图。我有这些数据,我想把它放在图中:
谁能给我一个建议怎么做?我尝试使用函数 vennDiagram() 但这不起作用,因为它是一个 4way 图。
我也在尝试使用 VennDiagram 包,但数据“分配”到图中正确位置的方式确实令人困惑。我正在使用这段代码:
library (VennDiagram)
venn.diagram(
x=list(
I=c(1:18,19:31,32:119,125:129,130:192,193:144,145:326,327:373),
VI=c(516:542,510:515,420:497,498:509,145:326,327:373,130:192,193:144),
II=c(19:31,32:119,145:326,327:373,374:378,378:419,420:497,498:509),
III=c(506:509,378:419,32:119,125:129,130:192,145:326,420:497,510:515)
),
filename = "4Way_Venn.tiff",
col = "black",
lty = "dotted",
lwd = 4,
fill = c("cornflowerblue", "green", "yellow", "darkorchid1"),
alpha = 0.50,
label.col = c("orange", "white", "darkorchid4", "white", "white", "white",
"white", "white", "darkblue", "white", "white", "white",
"white", "darkgreen", "white"),
cex = 2.5,
fontfamily = "serif",
fontface = "bold",
cat.col = c("darkblue", "darkgreen", "orange", "darkorchid4"),
cat.cex = 2.5,
cat.fontfamily = "serif"
);
谁能帮我?也许使用比使用 VennDiagram 包更简单的解决方案。