superheat
superheat copied to clipboard
Add extra legend capabilities
A commonly requested feature is to have legends for the labels and adjacent plots.
Legends for adjacent plots would be great indeed ! Maybe also being able to add a specific legend entry for heat.na.col
as well ?
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).