Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

makeVennDiagram #45

Open
zhangqc723 opened this issue Aug 14, 2024 · 4 comments
Open

makeVennDiagram #45

zhangqc723 opened this issue Aug 14, 2024 · 4 comments

Comments

@zhangqc723
Copy link

Now, I had ploted Venn plot by findOverlapsOfPeaks and makeVennDiagram. And why the order of set names is "B", "A". How to change this order? Could you help me?
Thanks!
image

@hukai916
Copy link
Contributor

The names should be in the same order as those specified in the NameOfPeaks parameter.

@zhangqc723
Copy link
Author

The names should be in the same order as those specified in the NameOfPeaks parameter.

NameOfPeaks = c('A','B') had beed seted

@jianhong
Copy link
Owner

Try plot the data by Vennerable. Let me know if it does not work.

if (!library(Vennerable)) {
  install.packages("Vennerable", repos="http://R-Forge.R-project.org")
  library(Vennerable)
}

n <- which(colnames(ol$vennCounts) == "Counts") - 1
set_names <- colnames(ol$vennCounts)[1:n]
weight <- ol$vennCounts[, "Counts"]
names(weight) <- apply(ol$vennCounts[, 1:n], 1, base::paste, collapse = "")
v <- Venn(SetNames = set_names, Weight = weight)
plot(v)

@jianhong
Copy link
Owner

Another possible solution is

makeVennDiagram(listofpeaks, ..., ,inverted=TRUE, cat.pos = c(90, 270)) 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants