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

Corner case fixes for a single item UpSetR #214

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zeehio
Copy link

@zeehio zeehio commented Jun 16, 2021

This commit provides some fixes to cover a corner case where there is only one element to intersect.

While its utility is clearly limited, I was using UpSetR on a pipeline with an arbitrary number of items, and before this commit UpSetR was failing for this (trivial) case.

library(UpSetR)
data <- fromList(list(a = c("b", "c")))
upset(data, nsets=6, keep.order = TRUE, order.by = "freq")

Now the output is trivial, but as expected:

imagen

This commit provides some fixes to cover a corner case where there is only one element to intersect.

While its utility is clearly limited, I was using UpSetR on a pipeline with an arbitrary number of items, and before this commit UpSetR was failing for this (trivial) case.

```r
library(UpSetR)
data <- fromList(list(a = c("b", "c")))
upset(data, nsets=6, keep.order = TRUE, order.by = "freq")
```
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

Successfully merging this pull request may close these issues.

None yet

1 participant