truncMat: truncate matrix used to generate heatmap; add option to scale

Description Usage Arguments Value

View source: R/formatting_p.R

Description

this is especially useful for heatmap

Usage

1
truncMat(mat, scale = TRUE, Lower, Upper, q1 = 0.01, q2 = 0.99)

Arguments

mat

the matrix to be formated

scale

whether to scale the data before formatting

Lower

lower cutoff value

Upper

upper cutoff value

q1

lower quantile. It is effective only if Lower is not specified

q2

upper quantile. It is effective only if Lower is not specified

Value

formated matrix


nickytong/GenAnalysis documentation built on July 20, 2019, 8:57 a.m.