jokergoo / ComplexHeatmap

Make Complex Heatmaps
https://jokergoo.github.io/ComplexHeatmap-reference/book/
Other
1.31k stars 227 forks source link

Feature Request: Stacked Bars in Upset Plots #1196

Open danphillips28 opened 4 months ago

danphillips28 commented 4 months ago

Hi! ComplexHeatmap is one of my favourites packages! Thanks so much.

I know you must be swamped but I'm really hoping one day you can allow for stacked bar plots in the upset plots, e.g. aes(fill=someFactor). I've recently had to switch to a different package for all my upsets to include this information but I much prefer working with ComplexHeatmap. Please consider it!

Thanks, Daniel

P.S Apologies if I've missed how to do this in the documentation, but I've looked a lot and not spotted it anywhere.

jokergoo commented 4 months ago

Em... I think if you send a matrix to anno_barplot(), it will be a stacked barplot.

UpSet(..., top_annotation = HeatmapAnnotation(..., foo = anno_barplot(your_matrix)))