本文介绍了VennDiagram,不带组名,带有Arial字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

已要求我使用Arial字体且不使用组名重做R中的以下Venn图...查看《 VennDiagram手册》 我不知道该怎么做...

I have been requested to redo the following Venn diagram in R with Arial font and without the group names... Looking at VennDiagram manual I do not see how I can do it...

这是我的MWE:

#install.packages("VennDiagram")
library(VennDiagram)

a <- c(1,2,3,4,5,6)
b <- c(4,5,6,7,8,9,10,11,12)
c <- c(1,2,10,11,12,5,13,14,15,16)

venn.diagram(list("A" = a, "B" = b, "C" = c),
                 fill = c("red", "blue", "green"), alpha = c(0.5, 0.5, 0.5),
                 cat.cex = .75, cex = .75, lty =2, lwd =0.5, fontfamily ="serif",
                 filename = "test.tiff", imagetype = "tiff",
                 height = 3000, width = 3000, resolution = 1500, units = "px",
                 main="TITLE", main.pos=c(0.1,1.05), main.fontfamily="serif", main.cex=.75)

是否甚至可以删除组名A,B和C,并将字体系列更改为Arial,还是我应该考虑另一种方法而不是R?

Is it even possible to remove the group names A, B, and C, and change the font family to Arial, or I should think about another approach instead of R?

此外,是否可以添加颜色图例?

Besides, could it be possible to add a color legend?

推荐答案

要安装Arial字体,请使用此手册.那你应该可以改变fontfamily ="Arial"main.fontfamily="serif".

To install Arial fonts, use this manual.Then you should be able to changefontfamily ="Arial" and main.fontfamily="serif".

这篇关于VennDiagram,不带组名,带有Arial字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 08:26