我正在尝试绘制数据,但出现错误。我不明白该错误,如果可以帮助我,我将非常感激
index.js
draw.quintuple.venn中的错误(area1 = 1068,area2 = 1092,area3 = 1077, :“类别”的参数长度超出预期
答案 0 :(得分:0)
draw.quintuple.Venn
函数的文档中显示“绘制五组维恩图”。您有四个区域/类别/填充/等。
因此,请改用draw.quad.venn
:
venn.plot <- draw.quad.venn(
area1 = 1068,
area2 = 1092,
area3 = 1077,
area4 = 1083,
n12 = 1027,
n13 = 1023,
n14 = 1027,
n23 = 1042,
n24 = 1048,
n34 = 1045,
n123 = 1000,
n124 = 1005,
n134 = 1004,
n234 = 1023,
n1234 = 989,
category = c("A", "B", "C", "D"),
fill = c("dodgerblue", "goldenrod1", "darkorange1", "seagreen3"),
cat.col = c("dodgerblue", "goldenrod1", "darkorange1", "seagreen3"),
cat.cex = 2,
margin = 0.05,
ind = TRUE
)