最近在学习R里面的heatmap.2,有些地方搞不明白,希望有热心网友指导下:1.在heatmap.2函数的帮助页面有如下例子
## Reorder dendrogram by branch means rather than sums
heatmap.2(x, reorderfun=function(d, w) reorder(d, w, agglo.FUN = mean) )
这儿不太懂,其实函数默认的order的方法我就没搞懂,希望知道的网友指导下~
2.怎样将右侧的行名放到左边?
3.怎样灵活控制key的位置?帮助页
## Place the color key below the image plot
heatmap.2(x, lmat=rbind( c(0, 3), c(2,1), c(0,4) ), lhei=c(1.5, 4, 2 ) )
## Place the color key to the top right of the image plot
heatmap.2(x, lmat=rbind( c(0, 3, 4), c(2,1,0 ) ), lwid=c(1.5, 4, 2 ) )
这几个参数什么意思?怎么放右下脚呢?怎么灵活设置?
谢谢~


雷达卡



京公网安备 11010802022788号







