NormalizeColor: Helper for computing colors for embedding plots

Description Usage Arguments Examples

View source: R/utils.R

Description

Helper for computing colors for embedding plots

Usage

1
NormalizeColor(data, low = NULL, high = NULL, pow = 0, sds = 1)

Arguments

data

Vector of scalar values to normalize between 0 and 1

low, high

Originally quantiles for clamping the color. Only kept for backwards compatibility, now ignored.

pow

The scaled data are transformed to data^(2^pow). If set to 0, nothing happens. Positive values highlight differences in the data closer to 1, negative values highlight differences closer to 0.

sds

Inverse scale factor for measured standard deviation (greater value makes data look more extreme)

Examples

1
EmbedSOM::NormalizeColor(c(1,100,500))

EmbedSOM documentation built on Feb. 12, 2020, 5:57 p.m.