[R] UpSetR - How to make UpSetPlot only show the highest level interactions?
2
0
Entering edit mode
2.8 years ago
Michael ▴ 10

I'm generating UpSetPlots with a large number of interactions (15 groups). There are several hundred interactions within that group. Consequently, when I try to plot that, it's a total mess.

I know how to reduce and increase the number of points shown, but when I reduce it, the plot only shows the lowest level interactions (i.e., overlap only between 2 or 3 groups are shown).

Can I rearrange it so it only shows overlap where, let's say, more than 12 of the 15 groups are present in that interaction?

r upsetr upsetplots • 1.6k views
ADD COMMENT
1
Entering edit mode
2.8 years ago
Basti ★ 2.0k

I found the ComplexUpset package very handy when you have multiple interaction plots, you can choose which interaction you want to plot and it is easy to manually arrange your plot : https://krassowski.github.io/complex-upset/index.html

ADD COMMENT
0
Entering edit mode
2.8 years ago
Michael ▴ 10

I ended up just brute-forcing it. I summed up the hits of all my interactions, then sorted that column largest to smallest and deleted all hits under a certain threshold.

It's pretty inelegant but it works in a pinch.

If anyone knows of any better alternatives, I'd appreciate the input.

ADD COMMENT

Login before adding your answer.

Traffic: 2934 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6