R - plot raster without box -
i have problem getting rid of box when plotting raster 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 doesn't work. missing here?
got it:
plot(raster, ..., bty="n", box=false)
it interesting both bty="n"
, box=false
must set! if try 1 of these, box printed!
Comments
Post a Comment