rlbarter / superheat

An r package for generating beautiful and customizable heatmaps
https://rlbarter.github.io/superheat/
235 stars 29 forks source link

FR: Add more options to control yr & yt #21

Open voxnonecho opened 7 years ago

voxnonecho commented 7 years ago

For example, I want to identify the top 3 values in a bar graph on the right side:

v_yr <- rowSums(mat, na.rm = TRUE)
col_yr <- rep("grey50", length(v_yr))
col_yr[tail(order(v_yr), 3)] <- viridis::plasma(1) 

But I would also like to add text labels on those specific values.

rlbarter commented 7 years ago

You should be able to color the top three values manually as your code seems to indicate. I will think about adding text capabilities to the adjacent plots. Currently it's not high on my priority list (but it is also easier than other things on my priority list!).

I'll let you know when I get around to this!