color_matrix: Convert numeric matrix to color (character) matrix

Description Usage Arguments Value

View source: R/hello.R

Description

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

Usage

1

Arguments

x

Numeric or logical matrix.

colors

Character vector of colors.

Value

Character matrix.


paintmap documentation built on May 19, 2017, 7:31 a.m.

Search within the paintmap package
Search all R packages, documentation and source code