-
Notifications
You must be signed in to change notification settings - Fork 4
Home
bioguo edited this page Apr 24, 2019
·
5 revisions
Extract detail information from venndiagram
VennDetail is a package can be used for extracting details(shared,unique sets) shown in the venn plot
R>2.15
VennDiagrm
library(devtools)
install_github("guokai8/VennDetail")
library(VennDetail)
A <- sample(1:1000, 400, replace = FALSE)
B <- sample(1:1000, 600, replace = FALSE)
C <- sample(1:1000, 350, replace = FALSE)
D <- sample(1:1000, 550, replace = FALSE)
res<-venndetail(list(A=A, B=B, C=C, D=D))
result<-result(res)
head(res)
get(res,"A") # get unique elements in A
detail(res) #show overlap 'details' of all groups
dplot(res) #make a bargraph for 'details'
dA=data.frame(A=A, "FC"=rnorm(400))
dB=data.frame(B=B, "FC"=rnorm(600))
dC=data.frame(C=C, "FC"=rnorm(350))
dD=data.frame(D=D, "FC"=rnorm(550))
getFeature(res,group="Shared",rlist=list(dA,dB,dC,dD),userowname=F)
###As all these four dataframes don't have row names, we set userowname to be FALSE
** PS: Support up to five-way venndiagram
For any questions please contact guokai8@gmail.com