Description Usage Arguments Details Value Note Author(s) See Also Examples
Methods for reordering trees into various traversal orders
1 2 3 4 |
x |
a |
order |
The desired traversal order; currently only
“preorder” and “postorder” are allowed for
|
... |
optional: extra arguments supplied to |
The reorder
method takes a phylo4
or phylo4d
tree and orders the edge matrix (i.e. edges(x)
) in the
requested traversal order. Currently only two orderings are
permitted, and both require rooted trees. In postorder
, a
node's descendants come before that node, thus the root, which is
ancestral to all nodes, comes last. In preorder
, a node is
visited before its descendants, thus the root comes first.
A phylo4
or phylo4d
object with the edge,
label, length and data slots ordered as order
, which is
itself recorded in the order slot.
The preorder
parameter corresponds to
cladewise
in the ape
package, and postorder
corresponds (almost) to pruningwise
.
See http://ape.mpl.ird.fr/misc/FormatTreeR_28July2008.pdf
Peter Cowan, Jim Regetz
reorder.phylo
in the ape
package.
ancestors
ancestor
siblings
children
descendants
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.