Mark Borowsky
2009-Apr-25 15:11 UTC
[R] heatmap.2 does not accept dendogram passed to Rowv param
heatmap.2() from gplots does not seem to accept a dendrogram produced by the stats package function heatmap(): > testHeatmap=heatmap(test[,1:40],Colv=NA,col=bluewhitered(256),labRow=testL,keep.dendro=TRUE) # draws expected image # to prove this dendro is OK, redraw with same function: > heatmap(test[,1:40],Colv=NA,col=bluewhitered(256),labRow=testL,keep.dendro=TRUE,Rowv=testHeatmap$Rowv) # draws expected image again # but it doesn't work with heatmap.2(): > heatmap.2(test[,1:40],Colv=NA,col=bluewhitered(256),labRow=testL,Rowv=testHeatmap$Rowv,trace='none') Error in if ((Colv == "Rowv") && (!isTRUE(Rowv) || is.null(Rowv))) Colv <- FALSE : missing value where TRUE/FALSE needed Am I wrong to expect heatmap.2() to accept this param? According to documentation it should behave same as heatmap().