library(gplots)
heatmap.2(,col=redblue) # col 配色
> bluered
function (n)
colorpanel(n, "blue", "white", "red")
<bytecode: 0x262fe60>
<environment: namespace:gplots>
> bluered
function (n)
colorpanel(n, "blue", "white", "red")
<bytecode: 0x262fe60>
<environment: namespace:gplots>
可以依据此函数来自定义函数来配色。
colorpanel 函数