inst/examples/image24.R

# 基础作图法绘制颜色图中色块与数值的对应关系
par(mar = rep(0, 4))
x = matrix(sample(24), 8)
image(1:8, 1:3, x, col = heat.colors(24), axes = FALSE, ann = FALSE)
text(rep(1:8, 3), rep(1:3, each = 8), as.vector(x))
yihui/MSG documentation built on Aug. 16, 2021, 12:13 p.m.