R语言绘制不同调色板的热力图5

library(RColorBrewer)
library(pheatmap)
colormap <- colorRampPalette(rev(brewer.pal(n = 7, name = "RdYlBu")))(100)

breaks = seq(min(unlist(c(df))), max(unlist(c(df))), length.out=100)
pheatmap(df, color=colormap, breaks=breaks,border_color="black",
         cutree_col = 2,cutree_row = 4)

R语言绘制不同调色板的热力图5_第1张图片

colormap <- colorRampPalette(rev(brewer.pal(n = 7, name = "Set1")))(100)

R语言绘制不同调色板的热力图5_第2张图片

colormap <- colorRampPalette(rev(brewer.pal(n = 7, name = "Set2")))(100)

R语言绘制不同调色板的热力图5_第3张图片

colormap <- colorRampPalette(rev(brewer.pal(n = 7, name = "Set3")))(100)

R语言绘制不同调色板的热力图5_第4张图片

colormap <- colorRampPalette(rev(brewer.pal(n = 7, name = "Pastel1")))(100)

R语言绘制不同调色板的热力图5_第5张图片

colormap <- colorRampPalette(rev(brewer.pal(n = 7, name = "Pastel2")))(100)

R语言绘制不同调色板的热力图5_第6张图片

colormap <- colorRampPalette(rev(brewer.pal(n = 7, name = "Paired")))(100)

R语言绘制不同调色板的热力图5_第7张图片

colormap <- colorRampPalette(rev(brewer.pal(n = 7, name = "Accent")))(100)

R语言绘制不同调色板的热力图5_第8张图片

colormap <- colorRampPalette(rev(brewer.pal(n = 7, name = "Dark2")))(100)

R语言绘制不同调色板的热力图5_第9张图片

你可能感兴趣的:(r语言可视化,可视化,r语言,开发语言)