如何在R中的维恩图中添加额外的文本?

时间:2018-09-18 00:17:05

标签: r

我想创建一个维恩图,该图对数据和类别信息生成的内容具有附加的文本。具体来说,我想在5向Venn的中心以及Venn的外部添加文本。我使用软件包VennDiagram使用以下代码创建了该图:

venn.plot <- draw.quintuple.venn(
area1 = 301, area2 = 321, area3 = 311, area4 = 321, area5 = 301,
n12 = 188, n13 = 191, n14 = 184, n15 = 177,
n23 = 194, n24 = 197, n25 = 190,
n34 = 190, n35 = 173, n45 = 186,
n123 = 112, n124 = 108, n125 = 108,
n134 = 111, n135 = 104, n145 = 104,
n234 = 111, n235 = 107, n245 = 110,
n345 = 100,
n1234 = 61, n1235 = 60, n1245 = 59,
n1345 = 58, n2345 = 57,
n12345 = 31,
category = c("1", "2", "3", "4", "5"),
fill = c("dodgerblue", "goldenrod1", "darkorange1", "seagreen3",  "orchid3"),
cat.col = c("black", "black", "black", "black", "black"),
cat.cex = 1.5,
cat.dist = c(-0.03, -0.03, -0.03, -0.03, -0.005),
margin = 0.2,
cex = 0,
ind = TRUE);

grid.draw(venn.plot)

这很好用,但是我想在图的中心以及类别1和2之间的空白处添加一些文本。我也想添加某种符号(例如,“ x” )在图表的每个椭圆的外边界上。

非常感谢您的帮助!

0 个答案:

没有答案