inst/examples/heatmap.R

# 汽车数据的热图
# 用极端化调色板
library(RColorBrewer)
heatmap(as.matrix(mtcars), col = brewer.pal(9, "RdYlBu"),
        scale = "column", margins = c(4, 8))
yihui/MSG documentation built on Aug. 16, 2021, 12:13 p.m.