as.cladogram: Apply unweighted branch lengths.

Description Usage Arguments Value Author(s) Examples

View source: R/utils.R

Description

This function sets the 'height' attributes of all leaf nodes to zero and progressively resets the heights of the inner nodes by single incremental units in a bottom-up fashion.

Usage

1

Arguments

x

an object of class "dendrogram".

Value

an object of class "dendrogram".

Author(s)

Shaun Wilkinson

Examples

1
2
3
4
  x <- read.dendrogram(text = "(A:0.1,B:0.2,(C:0.3,D:0.4):0.5);")
  plot(x, horiz = TRUE)
  x <- as.cladogram(x)
  plot(x, horiz = TRUE)

ropensci/phylogram documentation built on Dec. 10, 2019, 12:16 a.m.