sum_distance: Sum the distance of all branches in a dendrogram

Description Usage Arguments Value

View source: R/sum_distance.R

Description

This function takes a dendrogram class object as an input, and adds up all the distances of branches. This function is called recursively to adds up the sum. In case of exponential mapping for the quantitative mode, the sum is in the exponential scale

Usage

1
2
3
4
5
6
7
8
sum_distance(
  d,
  sum = 0,
  mapping = c("exponential", "linear"),
  scale = 0,
  max_height = 0,
  ...
)

Arguments

d

dendrogram class object

sum

the sum of distance

mapping

in case of quantitative mode, either "linear" or "exponential" mapping

...

ignored

Value

the sum of distances


gapmap documentation built on April 19, 2021, 5:06 p.m.