在用色标绘制栅格时,我在摆脱盒子时遇到问题:
require(raster)
data(volcano)
raster <- raster(volcano)
colfunc <- colorRampPalette(c("blue", "red"))
plot(raster, col = colfunc(40), breaks = seq(minValue(raster), maxValue(raster), length.out = 40), bty = "n", xaxt = "n", yaxt = "n")
该bty
选项根本不起作用。我在这里错过了什么吗?