📜  R 创建渐变调色板颜色 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:35.729000             🧑  作者: Mango

代码示例1
colfunc <- colorRampPalette(c("black", "white"))
colfunc(10)
# [1] "#000000" "#1C1C1C" "#383838" "#555555" "#717171" "#8D8D8D" "#AAAAAA"
# [8] "#C6C6C6" "#E2E2E2" "#FFFFFF"