Search code examples
rplotannotationsvenn-diagram

VennDiagram: How to hide % overlap labels?


Using the VennDiagram package, I would like to hide some, but not all, percentage overlap labels. For example, in the case below, I would like to keep 55, but remove the two 45 labels:

draw.pairwise.venn(100,100,55)

enter image description here

How can I do that using VennDiagram package? If it's not possible directly, how to edit the plot afterward (ggplot2 or else)? Thanks.


Solution

  • Probably not the most elegant way, but you can set colors for labels using label.col:

    library(VennDiagram)
    draw.pairwise.venn(100,100,55, label.col = c("white","black","white"))
    

    enter image description here