输出韦恩图为PDF格式
#将filename设置成NULL #将画出来的图先保存到venn.plot中 venn.plot <- venn.diagram( x = list ( A = 1:10, B = 6:25 ), cat.col=c("red","blue"), fill = c("red","blue"), filename = NULL ) #将venn.plot通过grid.draw画到pdf文件中 pdf("venn.pdf") grid.draw(venn.plot) dev.off()
source:
01、https://www.jianshu.com/p/4e2dae38417a