Closed danli349 closed 1 year ago
I bet it rather challenging to make proportional Venn Diagrams with more than 2 sets. It is mathematically not possible in my mind.
@hukai916 How about if we can use ovals instead of only round circles? Thanks
Hi @danli349 , Thank you for your question. Just above the section Generate_annotation_data, there is documentation to plot the Venn by Vennerable package. I copied the doc here:
Alternatively, users have the option to use other tools to plot Venn diagram. The following code demonstrates how to use a third party R package Vernerable with the output from the function findOverlapsOfPeaks.
# install.packages("Vennerable", repos="http://R-Forge.R-project.org",
# type="source")
# library(Vennerable)
# venn_cnt2venn <- function(venn_cnt){
# n <- which(colnames(venn_cnt)=="Counts") - 1
# SetNames=colnames(venn_cnt)[1:n]
# Weight=venn_cnt[,"Counts"]
# names(Weight) <- apply(venn_cnt[,1:n], 1, base::paste, collapse="")
# Venn(SetNames=SetNames, Weight=Weight)
# }
#
# v <- venn_cnt2venn(ol$venn_cnt)
# plot(v)
@hukai916 How about if we can use ovals instead of only round circles? Thanks
It is possible with ovals @danli349, this R package can do that: https://cran.r-project.org/web/packages/eulerr/vignettes/introduction.html
Just follow @jianhong's documentation and draw with your favorable third-party plotting tools.
@hukai916 @jianhong That is awesome. Thanks a lot.
Hello,
When there are only 2 sets,
makeVennDiagram
show the circle size in the same proportion as the number of peaks. But when there are 3 sets or more,makeVennDiagram
show the circle size all the same.How to set the circle size in the same proportion as the number of peaks when there are more than 2 sets using
makeVennDiagram
? Thanks