Usage
calculate_gap(d, sum, gap_total, mode = c("quantitative", "threshold"), mapping = c("exponential", "linear"), scale = 0.2, max_height = 0, threshold = 2, gap_size = 0, verbose = FALSE, ...)
Arguments
gap_total
the total width allocated for gaps
mode
gap mode, either "threshold" or "quantitative"
mapping
in case of quantitative mode, either "linear" or "exponential" mapping
scale
the sclae log base for the exponential mapping
max_height
the highest distance value, which is the value of the first dendrogram branch
threshold
the threshold value for threshold mode
gap_size
the size of gap for threshold mode
verbose
logical for whether in verbose mode or not