Use palette from ColorBrewer to recolour the image.

recolour(x, palette = "Blues", zero_colour = NA, invert = FALSE,
  trans = log1p)

recolor(x, palette = "Blues", zero_colour = NA, invert = FALSE,
  trans = log1p)

Arguments

x

Matrix

palette

ColorBrewer palette. This value is passed to scales::col_numeric()

zero_colour

Colour to use for zero and NA values

invert

If TRUE, inverts the colour scale

trans

Transformation function, defaulting to log1p()

Value

Matrix