generate_breaks: generate breaks for an input matrix or vector

Description Usage Arguments Details Value

View source: R/aheatmap.R

Description

this is an wrapper for genbreaks which is more straightforward

Usage

1
generate_breaks(x, n, midpoint = NA, center = F)

Arguments

x

a matrix or vector

n

desired number of intervals, which corresponds to n+1 breaks

midpoint

midpoint. default is NA, which will be recomputed as the middle point of the value ladder (mean of c(min, max)). This is equivalent to no midpoint at all, and hence the default way

center

whether to generate breaks centering 0 by expanding the values and hence, waste some colors (not recommended if the data is skewed)

Details

enhenced with midpoint

Value

a vector of break points


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