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

add intersection of the union of certain sets within the same intersection upset plot. #183

Open
sid5427 opened this issue Sep 5, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@sid5427
Copy link

sid5427 commented Sep 5, 2023

Is your feature request related to a problem? Please describe.
I want to explore the intersection of the union of certain sets in my figure.

Describe the solution you'd like

Say for example I have 5 sets of data - set 1 to 5. I am able to generate an intersection upset plot, however I want to also include a bar which takes the union of say set1 + set2, and reports the intersection with the union of say set3+set4+set5. and then add this to the existing intersection plot, possibly color the connection between set1+2 to say red, and then set3+4+5 to blue - signify these are a union.

Describe alternatives you've considered
I basically generated a separate upset plot for the two union sets as described, and added to the original intersection set via illustrator - not ideal.

Context (required)
Explore the intersection between union of sets within the same plot.

ComplexUpset version: 1.3.3

R version details
<!R version 4.2.1>
@sid5427 sid5427 added the enhancement New feature or request label Sep 5, 2023
@krassowski
Copy link
Owner

An illustration would really help here, it is not immediately clear to me what you are trying to achieve.

@sid5427
Copy link
Author

sid5427 commented Sep 5, 2023

sure ..

how about something like this -

image

the last bar is showing the intersection of two groups of sets - (set 1 ∪ set 2) ∩ (set 3 ∪ set 4 ∪ set 5).

If I visualize in a venn diagram (see below ) - the value 679 is to be shown in the figure above.

image

I hope this gives an idea of what I am trying to do...

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

No branches or pull requests

2 participants