R2-40 第八期-热图

barcaqiu 2017-12-25 23:37:48 阅读: 1121

> library(gplots)

> library(pheatmap)

> library(permute)

> library(lattice)

> library(vegan)

> mydata_8<-read.csv("D:\\learningr\\R2_8.csv",header = TRUE,row.names = 1)

> mydata_8<-as.matrix(mydata_8)

> drows<-vegdist(mydata_8,method = "bray")

> pheatmap(mydata_8,cellwidth = NA, cellheight = NA, treeheight_row = 50, treeheight_col = 50 ,color = colorRampPalette(c("white", "yellow","red"))(100), scale ="row", legend = TRUE,border_color = NA, fontsize_row = 8, fontsize_col = 10,clustering_distance_rows = drows, clustering_method ="average",main ="R2-40 Heatmap")


想试一试聚类的热图,所以尝试了用pheatmap来实现

Rplot-8-40.png


 
邀请讨论

附件

{{f.title}} 大小 {{f.file_size}} 下载 {{f.count_download}} 金币 {{f.count_gold}}
{{item.nick_name}} 受邀请回答 {{item.create_time}}
{{item.refer_comment.nick_name}} {{item.refer_comment.create_time}}

附件

{{f.title}} 大小 {{f.file_size}} 下载 {{f.count_download}} 金币 {{f.count_gold}}
切换到完整回复 发送回复
赞({{item.count_zan}}) 踩({{item.count_cai}}) 删除 回复 关闭
科研狗©2015-2024 科研好助手,京ICP备20005780号-1 建议意见

服务热线

178 0020 3020

微信服务号