node_depth_evonet: Depth of Nodes

View source: R/ggevonet.R

node_depth_evonetR Documentation

Depth of Nodes

Description

These functions return the depths or heights of nodes and tips.

Usage

node_depth_evonet(x, ...)

Arguments

x

an object of class 'evonet'

...

Further arguments passed to or from other methods.

Value

a vector with the depth of the nodes

See Also

node.depth

Examples

z <- ape::read.evonet(text = '((1,((2,(3,(4)Y#H1)g)e,
(((Y#H1, 5)h,6)f)X#H2)c)a,((X#H2,7)d,8)b)r;')
nd <- node_depth_evonet(z)
z$edge.length <- nd[z$edge[,1]] - nd[z$edge[,2]]
ggevonet(z)


KlausVigo/tanggle documentation built on April 16, 2022, 10:53 p.m.