I have a problem getting rid of the box when plotting raster with colour scale:
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")
the bty
option simply doesn't work. Am I missing something here?