hms-dbmi / UpSetR

An R implementation of the UpSet set visualization technique published by Lex, Gehlenborg, et al..
https://cran.rstudio.com/web/packages/UpSetR
Other
763 stars 156 forks source link

Intersection sizes not as expected #232

Closed yesitsjess closed 2 years ago

yesitsjess commented 2 years ago
> head(sort(table(unlist(listInput)), decreasing=T))

 2780  8723 13650 14299   709   768 
    5     5     5     5     4     4 

So the entries 2780, 8723, 13650 and 14299 are definitely in all 5 sets.

But the plot, as plotted from this call, shows there are only 2 entries in all 5 sets. UpSetR::upset(fromList(listInput), order.by="degree", nintersects=NA)

From the venn diagram below I would expect ABCDE = 5 but in my view the upset plot is showing ABCDE = 2. image

Have I misunderstood what UpSetR is doing?

yesitsjess commented 2 years ago

I was being daft, I forgot to set nsets and it wasn't showing all of my sets. Apologies for the confusion.