ouchtree | R Documentation |
ouchtree
constructs a representation of a phylogenetic tree.
ape2ouch
translates ape's phylo
representation of a phylogenetic tree into ouch's ouchtree
representation.
Optionally, the user can adjust the branch lengths while preserving the topology.
ouchtree(nodes, ancestors, times, labels = as.character(nodes))
ape2ouch(tree, scale = TRUE, branch.lengths = tree$edge.length)
nodes |
A character vector giving the name of each node. These are used internally and must be unique. |
ancestors |
Specification of the topology of the phylogenetic tree.
This is in the form of a character vector specifying the name
(as given in the |
times |
A vector of nonnegative numbers, one per node in the tree, specifying the time at which each node is located. Time should be increasing from the root node to the terminal twigs. |
labels |
Optional vector of node labels. These will be used in plots to label nodes. It is not necessary that these be unique. |
tree |
a tree of class ape::phylo. |
scale |
optional.
If |
branch.lengths |
optional vector of branch lengths. |
ouchtree()
creates an ouchtree
object given information on the phylogeny's topology and node times.
An ouchtree
object also (optionally) holds names of taxa for display purposes.
Aaron A. King
A. A. King, D. Ackerly
Other phylogenetic comparative models:
brown()
,
hansen()
,
ouch-package
,
paint()
tree <- with(
bimac,
ouchtree(nodes=node,ancestors=ancestor,times=time,labels=spcode)
)
tree
plot(tree)
plot(tree, node.names=TRUE) # display node names
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.