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
ADD COMMENT
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:

unnamed-chunk-73-1

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

Kevin

ADD COMMENT

Login before adding your answer.

Traffic: 1464 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