ropensci / iheatmapr

Complex, interactive heatmaps in R
https://docs.ropensci.org/iheatmapr
Other
267 stars 35 forks source link

Using multiple colors for axis ticks #86

Open domenico-simone opened 3 years ago

domenico-simone commented 3 years ago

Hi,

thanks for this great package! I was wondering if it possible to use multiple colors for axis ticks (which I would use to highlight a specific row) like what happens here. Would that be possible?

Thank you,

Domenico

mschilli87 commented 3 years ago

Hi Domenico/@domenico-simone,

AFIK this is not currently possible. Though I'd like to see a PR adding this feature. :wink:

As an alternative, you could use add_row_anotation (or add_col_annotation, respectively) to visually add the same information to the heatmap.

Cheers, Marcel

domenico-simone commented 3 years ago

Mmm I don't know if I'm capable of attempting such a thing :-) . I was thinking to overlay an additional add_row_labels on the first one, but as a result I get the second one in a different position (instead of getting the two labels overlapped). I will explore your idea about add_row_annotation, thank you!