4

Does anybody know how to display the count of each subset in a Venneuler plot? Also, how can I write the labels next to the circles instead of the default setting (inside the circles)? Thanks very much!!

Here's an example from the package manual:

vd <- venneuler(c(A=0.3, B=0.3, C=1.1, "A&B"=0.1, "A&C"=0.2, "B&C"=0.1 ,"A&B&C"=0.1))
plot(vd)
Simon O'Hanlon
  • 58,647
  • 14
  • 142
  • 184

1 Answers1

2

This will show labels for counts manually added up:

vd <- venneuler(c(A=0.3, B=0.3, C=1.1, "A&B"=0.1, "A&C"=0.2, "B&C"=0.1 ,"A&B&C"=0.1))

vd$labels<- c(
  paste("A\n",0.3+0.1+0.2+0.1),
  paste("B\n",0.3+0.1+0.1+0.1),
  paste("C\n",1.1+0.2+0.1+0.1)
)

plot(vd)

enter image description here

user2030503
  • 3,064
  • 2
  • 36
  • 53