clusterExperiment icon indicating copy to clipboard operation
clusterExperiment copied to clipboard

in plotHeatmap need to give default colors to all factor entries of sampleData

Open epurdom opened this issue 8 years ago • 1 comments

Currently, we only assign default colors if is.null(colorLegend) in the matrix version of plotHeatmap. If colorLegend is given, but doesn't give colors to all factors, then it is ignored and passed through to aheatmap. However, aheatmap doesn't recycle colors and can run out of colors! Which will mean that the levels will be white (in addition to aheatmap not having great colors). So need a default assignment to all factors to be added.

epurdom avatar Jun 08 '17 04:06 epurdom

Currently added this information to documentation of plotHeatmap telling user to define colors with clusterLegend if there are many factors/levels. If fix this problem, should remove this warning.

epurdom avatar Jun 08 '17 05:06 epurdom