我无法使用VennDiagram创建情节。以下是我的代码和错误:
venn.plot <- draw.quad.venn(area1 = 412, area2 = 471, area3 = 137, area4 = 1507, n12 = 11, n13 = 1, n14 = 132, n23 = 0, n24 = 183, n34 = 24, n123 = 1, n124 = 143, n134 = 18, n234 = 14, n1234 = 64, category = c("Set1", "Set2", "Set3", "Set4"), fill = c("orange", "red", "green", "blue"), lty = "dashed", cex = 2, cat.cex = 2, cat.col = c("orange", "red", "green", "blue"));
Error in draw.quad.venn(area1 = 412, area2 = 471, area3 = 137, area4 = 1507, :
Impossible: a5 <- n134 - a6 produces negative area
我检查了我的数学,但可能错过了什么?有什么想法吗?
答案 0 :(得分:2)
问题是恕我直言,缺乏文件。尝试运行draw.triple.venn
的示例代码。您将看到成对重叠区域中的值由参数值减去三向参数值组成。也就是说,
venn.plot <- draw.triple.venn(
area1 = 65,
area2 = 75,
area3 = 85,
n12 = 35,
n23 = 15,
n13 = 25,
n123 = 5)
在双向区域中生成“30”,20',“10”的图。我怀疑你必须对你的输入值做同样的减法。