How to outline single or multiple cells with a line in ComplexHeatmap
1
0
Entering edit mode
15 months ago
tjdewolfe • 0

Hello, I am trying to put a box around 1 cell in my ComplexHeatmap in one column and a box around two proximal cells in another column. Is it possible to do this without drawing them on the plot manually? Currently Im using decorate_heatmap_body with grid.lines to draw boxes manually but I would like a better way to do this if possible.

Thanks!

ComplexHeatmap Heatmap • 911 views
1
Entering edit mode
15 months ago

Using decorate_heatmap() should be fine, as it gives you ultimate flexibility; however, it can be cumbersome. At the end of the day, it's difficult for package developers to code for every possible eventuality. That being said, layer_fun maybe what you want:

[ source: https://jokergoo.github.io/ComplexHeatmap-reference/book/a-single-heatmap.html ]

Kevin