R reverse color map

# reverse color ramp
colors <- function(n, alpha = 1) {
    rev(heat.colors(n, alpha))
}
plot(NBA.SOM1, type = "counts", palette.name = colors, heatkey = TRUE)
posted @ 2020-04-14 18:32  2021年的顺遂平安君  阅读(47)  评论(0编辑  收藏  举报