-
Notifications
You must be signed in to change notification settings - Fork 0
/
venn.r
33 lines (30 loc) · 1019 Bytes
/
venn.r
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
library(VennDiagram)
setwd("F:/R_wenjian/deeptools/overlap/new")
a<-read.table(file="Foxa2_dox_peaks.peaks",header = F,sep="\t")
b<-read.table(file="Fra1_peaks.peaks",header = F,sep="\t")
c<-read.table(file="JunB_peaks.peaks",header = F,sep="\t")
d<-read.table(file = "Klf5_dox_peaks.peaks",header = F,sep="\t")
e<-read.table(file="sun.peaks",header = F,sep="\t")
p <- venn.diagram(
x = list(
" a" = a$V4,
" b" = b$V4,
" c"=c$V4,
" d"=d$V4,
" e"=e$V4
),
filename = "overlap8.png",
col = "transparent",
fill = c("red","blue","green","orange","violet"),
alpha = 0.5,
#label.col = c("darkred", "white", "darkblue","darkred","darkred","darkred","darkred"),
cex = 1,
fontfamily = "serif",
fontface = "bold",
cat.default.pos = "text",
#cat.col = c("darkred", "darkblue","darkred", "white", "darkblue","darkred", "white","darkred", "darkblue","darkred"),
cat.cex = 0,
cat.fontfamily = "serif",
#cat.dist = c(0.06, 0.06),
cat.pos = c(0,0,250,90,0)
)