powered by
Performs transformation on continuous variables for the heatmap color scales.
scale_norm(x, trans_type = c("percentize", "normalize", "scale", "none"))
Numeric vector of the transformed x.
x
Numeric vector.
Character. One of "percentize","normalize","scale","none" passed to scale_norm().
https://github.com/trangdata/treeheatr/blob/85be4a61e35a62285c95b553f03729721bb18a0b/R/utils.R
scale_norm(1:5, "normalize")
Run the code above in your browser using DataLab