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

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -