你好,网上看到你发布的文章“R 数据可视化 01 | 聚类热图”,按你给的代码做出的热图,右侧显示这个“matrix_24”怎么去掉?
非常感谢。
rm(list=ls())
library(pheatmap)
setwd("E:/software/R/heatmap")
dataset <- read.table('DXW.txt',header = TRUE, row.names = 1)
exp_ds = dataset[c(1:30),c(1:5)]
Group=c(rep('ori',1),
rep('R',4))
annotation_c <- data.frame(Group)
rownames(annotation_c) <- colnames(exp_ds)
pheatmap(exp_ds,
cluster_rows = T,
cluster_cols = F,
annotation_col =annotation_c,
annotation_legend=TRUE,
show_rownames = T,
show_colnames = T,
scale = "row",
color =colorRampPalette(c("#8854d0", "#ffffff","#fa8231"))(100)
)