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().
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.