describe.simmap {phytools} | R Documentation |
Summarizes a stochastic mapped tree or set of trees
Description
Summarizes the result of one or more stochastic maps.
Usage
describe.simmap(tree, ...)
## S3 method for class 'simmap'
summary(object, ...)
## S3 method for class 'multiSimmap'
summary(object, ...)
## S3 method for class 'describe.simmap'
plot(x, ...)
Arguments
tree |
a single tree or a set of trees as an object of class |
object |
object of class |
x |
for S3 |
... |
optional arguments which include: |
Value
An object of class "describe.simmap"
with the following elements:
count |
a matrix containing the number and types of transitions for each tree, if |
times |
a matrix containing the times spend in each state on each tree. |
ace |
the posterior probabilities of each node being in each state, if |
legend |
a vector containing the plot legend, if |
if class(tree)="simmap"
then the function simply returns the results of countSimmap
combined with the states at each node of the tree and a matrix containing the total and relative times spent in each state on the tree.
Author(s)
Liam Revell liam.revell@umb.edu
References
Revell, L. J. (2024) phytools 2.0: an updated R ecosystem for phylogenetic comparative methods (and other things). PeerJ, 12, e16505.