NormalizeColor | R Documentation |
Helper for computing colors for embedding plots
NormalizeColor(data, low = NULL, high = NULL, pow = 0, sds = 1)
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) |
EmbedSOM::NormalizeColor(c(1,100,500))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.