reposition
is a helper function used for manually creating
"dendrogram"
objects from nested lists. The function
recursively reassigns the 'height' attributes at each node by
a given constant.
Examples
x <- read.dendrogram(text = "(A:0.1,B:0.2,(C:0.3,D:0.4):0.5);")
plot(x, horiz = TRUE)
x <- reposition(x)
plot(x, horiz = TRUE)