1 min read

Add legend for color scale in base plot

The image.plot() function in {fields} package can draw a legend of customized color legend, which is helpful to annotate figures later for presentation. To do so:

  • image.plot(col=heat.color(n), legend.only=T)

See also: R Documentation