Description Usage Arguments Value Examples
Performs transformation on continuous variables for the heatmap color scales.
1 | scale_norm(x, trans_type = c("percentize", "normalize", "scale", "none"))
|
x |
Numeric vector. |
trans_type |
Character string of 'normalize', 'scale' or 'none'. If 'scale', subtract the mean and divide by the standard deviation. If 'normalize', i.e., max-min normalize, subtract the min and divide by the max. If 'none', no transformation is applied. More information on what transformation to choose can be acquired here: https://cran.rstudio.com/package=heatmaply/vignettes/heatmaply.html#data-transformation-scaling-normalize-and-percentize |
Numeric vector of the transformed 'x'.
1 2 | scale_norm(1:5)
scale_norm(1:5, 'normalize')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.