rlbarter / superheat

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

Feature(?) request: allow one column heatmap #46

Open davemcg opened 5 years ago

davemcg commented 5 years ago

superheat::superheat(as.matrix(c(2,3,3))) gives Error in 1:ncol(X) : argument of length 0 while superheat::superheat(cbind(as.matrix(c(2,3,3)), as.matrix(c(2,3,3))) works just fine (as expected)

This may be as simple as using ,drop=FALSE for any as.matrix operations?