View source: R/branch.length.R
species.tip.length | R Documentation |
Computation of species tip length using a phylogeny.
species.tip.length(tree = NULL, edge.info = NULL, ...)
tree |
phylo. A dated tree. |
edge.info |
Object returned by |
... |
additional arguments to be passed passed down from a calling function. |
Calculates tip lengths for all species in a phylogeny
returns a numeric vector giving the length of species branch.
Neander M. Heming
library(phyloraster)
tree <- ape::read.tree(system.file("extdata", "tree.nex",
package="phyloraster"))
species.tip.length(tree)
library(ape)
set.seed(1)
tree <- rtree(n=40)
plot(tree)
species.tip.length(tree)
edge.info <- tip.root.path(tree)
species.tip.length(edge.info = edge.info)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.