superheat icon indicating copy to clipboard operation
superheat copied to clipboard

Add extra legend capabilities

Open rlbarter opened this issue 7 years ago • 2 comments

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

rlbarter avatar Apr 03 '17 16:04 rlbarter

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

voxnonecho avatar May 02 '17 22:05 voxnonecho

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).

bblodfon avatar Feb 14 '19 15:02 bblodfon