pheatmap自定义颜色
2023-03-19 本文已影响0人
yingyonghui
bks <- seq(0,1, by = 0.01)
color.use <- rev(RColorBrewer::brewer.pal(n=10, name='Spectral'))
hmcols <- colorRampPalette(color.use)(length(bks) - 1)
pheatmap(xxx, breaks=bks, color=hmcols)
bks <- seq(0,1, by = 0.01)
color.use <- rev(RColorBrewer::brewer.pal(n=10, name='Spectral'))
hmcols <- colorRampPalette(color.use)(length(bks) - 1)
pheatmap(xxx, breaks=bks, color=hmcols)