I use plot function to plot a raster in R. The plot function adds a legend as default. However, the default legend added does not have a title. For instance I need to add the unit such as meters.
I cannot add a title to legend. How can I do it in plot function?
plot(raster, main = "text", sub = "This is elevation", lwd =5, col =my.palette, legend = T )