is.valid.ouch.tree(node, ancestor, times, regimes = NULL)
tree.plot(node, ancestor, times, names = NULL, regimes = NULL)
tree.plot
makes a simple plot of the phylogenetic tree. Labels
and/or a selective-regime-based coloring scheme are optional. is.valid.ouch.tree
performs several checks to make sure that
the tree is valid. These include checks to ensure that all the vector
arguments are of the same length, that the nodes have unique names,
that there is a unique root, that there is at least one terminal node,
that every node's ancestor is in fact part of the tree, that there are
no cycles in the 'tree', and that the tree is connected. It returns
TRUE if the tree is valid, FALSE otherwise and gives diagnostic
warnings.
data(bimac)
attach(bimac)
is.valid.ouch.tree(node,ancestor,time,OU.LP)
tree.plot(node,ancestor,time,species,OU.LP)
Run the code above in your browser using DataLab