Description Usage Arguments See Also Examples
findFromNode
is a recurrsive function for computing the
path from a node back in time through its ancestor nodes.
findEdgesFromPath
returns a logical
vector
indicating the edges associated with a particular path.
edgeTipIndicator
returns a logical
matrix giving the
relationship between tips and the edges associated with their
history. reorderPhylo
is a convenience function for
ordering the edges of a phylo
object in a way that makes it
easier to build edge-based phylogenetic models.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | findPathFromNode(node, edge)
findEdgesFromPath(path, edge, scale = 1)
edgeTipIndicator(object, ...)
## Default S3 method:
edgeTipIndicator(object, ...)
## S3 method for class 'matrix'
edgeTipIndicator(object, ntip, scale = NULL, ...)
## S3 method for class 'phylo'
edgeTipIndicator(object, ...)
## S3 method for class 'hclust'
edgeTipIndicator(object, ...)
## S3 method for class 'mst'
edgeTipIndicator(object, ...)
reorderPhylo(object, ...)
|
node |
vector of node indices |
edge |
phylogenetic edge matrix |
path |
vector giving the path from a node back in time
through its ancestor nodes (output of |
object |
either a |
scale |
scaling factor for edges (i.e., vector of branch lengths) |
... |
not used |
ntip |
number of tips |
1 2 3 4 5 6 7 8 9 10 11 | set.seed(1)
if (require("ape")) {
phy <- rtree(5)
plot(phy)
edgelabels()
edgeTipIndicator(phy)
(ee <- edgeTipIndicator(phy))
if (require("Matrix")) {
image(Matrix(ee),sub="",xlab="tips",ylab="branches")
}
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.