map_to_color: Map to color

View source: R/One_D_Mapper.R

map_to_colorR Documentation

Map to color

Description

Auxiliary function that maps a numeric vector, the average node filtering function values, to a color vector.

Usage

map_to_color(x, limits = NULL)

Arguments

x

A vector of numeric values storing the average filtering function values found in the samples placed into a specific node.

limits

A two element numeric vector including the range of values. This is optional.

Value

A vector of the same length of x with colors ranging from blue to red.


GSSTDA documentation built on June 22, 2024, 10:44 a.m.