用R中的Vennerable包绘图

时间:2016-09-09 14:18:38

标签: r data-visualization

这是一个非常基本的例子:

library(vennerable)    
srl.venn <- Venn(SetNames=c("Cognitive condition","Operations","Individual differences"),
                 Weight=c(0,30, 21, 15, 1, 8, 3, 6))
plot(srl.venn)

我要做的就是删除圆圈周围的边框,并格式化颜色和字体。但是,仍然没有做太多。

请您分享一些有用的例子吗?

1 个答案:

答案 0 :(得分:0)

查看VennThemes以更改图表中的参数。例如:

library(Vennerable)

    srl.venn <- Venn(SetNames=c("Cognitive condition","Operations","Individual differences"),
                     Weight=c(0,30, 21, 15, 1, 8, 3, 6))

    srl.venn.c <- compute.Venn(srl.venn, doWeights=T)
    gp <- VennThemes(srl.venn.c, colourAlgorithm = "binary")

    plot(srl.venn.c, gpList = gp, show = list(FaceText = "signature", SetLabels = FALSE,
                         Faces = FALSE,  DarkMatter = FALSE))

enter image description here

可以在手册页中找到更多详细信息,也可以致电vignette("Venn")