color_matrix {paintmap}R Documentation

Convert numeric matrix to color (character) matrix

Description

Given a numeric matrix, assign to each cell a color (character) value based on linearly interpolating a given vector of colors.

Usage

color_matrix(x, colors = heat.colors(10))

Arguments

x

Numeric or logical matrix.

colors

Character vector of colors.

Value

Character matrix.


[Package paintmap version 1.0 Index]