as.Qmatrix {phytools} | R Documentation |
Convert a fitted Mk model to a Q-matrix
Description
Extracts a Q-matrix from a fitted Mk model.
Usage
as.Qmatrix(x, ...)
## S3 method for class 'fitMk'
as.Qmatrix(x, ...)
## S3 method for class 'Qmatrix'
plot(x, ...)
## S3 method for class 'Qmatrix'
print(x, ...)
Arguments
x |
fitted Mk model. (For instance, an object of class |
... |
optional arguments. |
Details
This function extracts a Q-matrix (in the form of an object of class "Qmatrix"
) from a fitted Mk model.
Value
An object of class "Qmatrix"
.
plot.Qmatrix
invisibly returns the coordinates of vertices of the plotted Q-matrix.
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.
See Also
[Package phytools version 2.3-0 Index]