E3Val2Col: Convert a number into a color using transparency

Description Usage Arguments

Description

See also E3ValMat2ColMat. Uses val2hex from package Rpipelines

Usage

1
E3Val2Col(x, col = c("#0000ff", "#ff0000"), maxval = 1)

Arguments

x

- numeric matrix.

col

- vector of two colors in #XXXXXX format. First element determines color associated with negative values. Second element determines color associated with positive values

maxval

- numeric. Value for which color reaches saturation


tkonopka/ExpCube documentation built on May 31, 2019, 3:44 p.m.