rlbarter / superheat

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

Add extra legend capabilities #17

Open rlbarter opened 7 years ago

rlbarter commented 7 years ago

A commonly requested feature is to have legends for the labels and adjacent plots.

voxnonecho commented 7 years ago

Legends for adjacent plots would be great indeed ! Maybe also being able to add a specific legend entry for heat.na.col as well ?

bblodfon commented 5 years ago

Hi, does the above feature request cover the following case scenario?

Input is a matrix which has 1's and 0's. I want to annotate somewhere outside the heatmap area that 0 is/means label1 and 1 is/means label2. I tried to setting legend.breaks=c("label1", "label2") but it does not accept characters there and when I tried adding an extra legend like: legend("topright", legend = c(0, 1), ...) after the superheat(..) command, I got the plot.new has not been called yet error (which tells me that I cannot do that).