超详细的热图绘制教程(5000余字),真正的保姆级教程 - 知乎 https://zhuanlan.zhihu.com/p/467174641?utm_medium=social&utm_oi=1225178195995410432
color = colorRampPalette(c("#1414f2", "white", "firebrick3"))(100),
p <- pheatmap(data,
scale="row", #设置标准化方向scale,对其横向标准化。按照行标准化,凸显列与列之间的差异。column对列进行标准化。
border="white", # 设置边框为白色
main="Gene1", # 设置图形标题
cellwidth = 40,cellheight = 20, # 设置热图方块宽度和高度
cluster_cols = F, cluster_rows = F, # 去掉横向、纵向聚类
show_rownames = F, #去掉横、纵坐标id
show_colnames = F,
#legend = F, # 去掉图例
legend = T, # 添加图例
legend_breaks=c(-1,0,1), # 设置图例范围
fontsize = 8, # 设置字体大小
fontsize_row = 12, fontsize_col = 16,# 分别设置横向和纵向字体大小
treeheight_col = 50, treeheight_row = 45, # 分别设置横、纵向聚类树高
angle_col = 45, # 设置显示角度,可选有270、0、45、90、315
)