Learn R Programming

dtGAP (version 0.0.2)

scale_norm: Performs transformation on continuous variables.

Description

Performs transformation on continuous variables for the heatmap color scales.

Usage

scale_norm(x, trans_type = c("percentize", "normalize", "scale", "none"))

Value

Numeric vector of the transformed x.

Arguments

x

Numeric vector.

trans_type

Character. One of "percentize","normalize","scale","none" passed to scale_norm().

References

https://github.com/trangdata/treeheatr/blob/85be4a61e35a62285c95b553f03729721bb18a0b/R/utils.R

Examples

Run this code
scale_norm(1:5, "normalize")

Run the code above in your browser using DataLab