Venndiagram Using R

Could anyone would be able to guide me to draw a venn diagram with five entries with R library VennDiagram. I have tried the venneuler with success but it does not provide the annotation of the values for display. The code for venneuler along with the data of the five entries is given below

library("venneuler") vd <- venneuler(c(K=1206, C=1346, Y=1369, W=585, T=915, "K&C"=963, "K&Y"=978, "K&W"=234,"K&T"=613 , "C&Y"=1154, "C&W"=224, "C&T"=700, "Y&T"=638, "Y&W"=271, "W&T"=153,"K&C&Y&W&T"=1802))

•

link
•
updated
8.7 years ago
Ly
•
130
You probably should try the package `Vennerable`

from R-Forge here. I have tried making Venn diagrams for upto 4 sets and i think this package allows you to go upto 9 sets. But the limitation is you can draw "proportional" Venn diagrams with only upto 3 sets.

The syntax is generally as follows:

```
library( vennerable )
v <- Venn( SetNames=c( "A", "B" ), Weight=c( `01` = 10, `10` = 10, `11` = 5 ) )
plot v
```

Do let know if this helps.

With VennDiagram, I can draw Venn Diagrams with up to 5 sets:

a<-"your a data"

b<-"your b data"

c<-"your c data"

d<-"your d data"

e<-"your e data"

aa<-cbind(a,b,c,d,e)

aa.2<-vennCounts(aa)

vennDiagram(aa.2)

Login before adding your answer.

You should ask this question on stackoverflow, there is a bigger R community there: http://stackoverflow.com/questions/tagged/r