as.binary {ggtree} | R Documentation |
as.binary method for phylo
object
as.binary(tree, ...) ## S3 method for class 'phylo' as.binary(tree, ...)
tree |
phylo, object |
... |
additional parameter |
binary tree
Guangchuang Yu http://ygc.name
require(ape) tr <- read.tree(text="((A, B, C), D);") is.binary.tree(tr) tr2 <- as.binary(tr) is.binary.tree(tr2)