View source: R/edgeLengthTable.R
edgeLengthTable | R Documentation |
This function creates an edge length table showing the two connecting nodes to the edge
edgeLengthTable(tree = NULL, tips = FALSE)
tree |
phylogenetic tree from ape read.tree in phylo format |
tips |
whether to include the tip edges or not |
a data.frame is returned with the columns: "edge" = edge number; "node1" = ancestral node; and "node2" = descendent node. Node that node1 can be repeated because many descendents could have 1 ancestor.
your.tree = ape::read.tree(file = "file-path-to-tree.tre")
edge.table = edgeLengthTable(tree = your.tree, tips = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.