Rdocumentation
powered by
Learn R Programming
paintmap (version 1.0)
colour_matrix: Convert numeric matrix to colour (character) matrix
Description
Given a numeric matrix, assign to each cell a colour (character) value based on linearly interpolating a given vector of colours.
Usage
colour_matrix(x, colours = heat.colors(10))
Arguments
x
Numeric or logical matrix.
colours
Character vector of colours.
Value
Character matrix.