I want to make a plot which takes up the entire space; no borders, no scale bars, etc.
I tried:
sp.predict <- predict(tstack, sp.tree4,
n.trees=sp.tree4$gbm.call$best.trees,
type = "response")
plot(sp.predict)
Which gives me the plot fine but has a border, blank space where the titles should go, etc. How can I get the plot to take up the entire space?
Use
par(mar=rep(0,4))
, as shown in this example from?plot.raster
:You may also want to add
legend=FALSE
...