complex-upset | creating complex UpSet plots with ggplot2 geoms | Data Visualization library
kandi X-RAY | complex-upset Summary
kandi X-RAY | complex-upset Summary
A library for creating complex UpSet plots with ggplot2 geoms
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of complex-upset
complex-upset Key Features
complex-upset Examples and Code Snippets
Community Discussions
Trending Discussions on complex-upset
QUESTION
I'm trying to plot an stacked barplot inside an upset-plot using the ComplexUpset package. The plot I'd like to get looks something like this (where mpaa would be component in my example):
I have a dataframe of size 57244 by 21, where one column is ID and the other is type of recording, and other 19 columns are components from 1 to 19:
...ANSWER
Answered 2021-Nov-24 at 13:47Somehow, it works if you:
- Tweak the
min_size
parameter so that the plot is not overloaded and makes a better impression - Making the first argument of
ComplexUpset
a sample with some data also helps, even if your sample is the whole dataset.
QUESTION
I would like to create an UpSet plot using the ComplexUpset package. I would like to manually color the dots in the intersection matrix to match the sets' color.
Here's what I've attempted so far:
...ANSWER
Answered 2021-Sep-22 at 15:37The dots don't change color because you are passing fill
(not color
) to upset_query
; you can keep using fill
if you like but in that case you need to also change the shape of the dot so that they have area to be filled, which can be done using shape='circle filled'
(there are other shapes too!).
Similarly, the scale_color_manual
would not be a perfect choice in plain ggplot2, but given that it is overridden by ComplexUpset it is actually a good idea, but you will need to customize override.aes to make it display as intended.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install complex-upset
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page