全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
3329 0
2015-08-12
最近在学习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 ) )

这几个参数什么意思?怎么放右下脚呢?怎么灵活设置?

谢谢~

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群