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