colour_matrix {paintmap} | R Documentation |
Given a numeric matrix, assign to each cell a colour (character) value based on linearly interpolating a given vector of colours.
colour_matrix(x, colours = heat.colors(10))
x |
Numeric or logical matrix. |
colours |
Character vector of colours. |
Character matrix.