服务热线
178 0020 3020
> 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来实现
附件