Thanks for this, it works successfully. I've tried to add the other peaks file and try to draw Venn diagram for 4 peaks file but that gives me an error:
qlist <- venndiagram(x= list(JARID2.ol, EZH2.ol, H3K4me3.ol, H3K27me3.ol), unique=T, title="Peaks_overlap", labels=c("JARID2", "EZH2", "H3K27me3", "H3K4me3"), plot=TRUE, type=2) Error in h(simpleError(msg, call)) : error in evaluating the argument 'x' in selecting a method for function 'unique': promise already under evaluation: recursive default argument reference or earlier problems?
Any advice?
Thanks