Suppose I have a data frame such like this:
df<-data.frame(
A=rep(1, 10),
B=c(1,1,1,1,1,1,1, 1, 0,0),
C=c(0, 0, 0, 1, 1, 1, 1, 1, 1, 1),
D=c(0, 1, 1, 1, 1, 1, 1, 1, 1, 0)
)
df
A B C D
1 1 1 0 0
2 1 1 0 1
3 1 1 0 1
4 1 1 1 1
5 1 1 1 1
6 1 1 1 1
7 1 1 1 1
8 1 1 1 1
9 1 0 1 1
10 1 0 1 0
My question is how to draw a venn diagram in R such like below where B,C,D are subset to A.