Search code examples
rplotraster

R plot function: Increase size of legend scale tick labels


I am using plot() for some raster images. I want to increase the size of the legend scale tick labels. Any ideas?

enter image description here


Solution

  • Following the documentation for raster::plot(), any extra parameters passed to it are passed to fields::image.plot(). See: image.plot

    Based on the answer to this: Increase font size in legend of image.plot, you should be able to pass

    axis.args = list(cex.axis = font_size)
    

    as a parameter to your call to plot() to change the legend tick label size.