Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

as.Qmatrix

Convert a fitted Mk model to a Q-matrix


Description

This function extracts a Q-matrix (in the form of an object of class "Qmatrix" 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 "fitMk".) In the case of print.Qmatrix, an object of class "Qmatrix".

...

optional arguments.

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, Joan Maspons

References

Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.

See Also


phytools

Phylogenetic Tools for Comparative Biology (and Other Things)

v0.7-70
GPL (>= 2)
Authors
Liam J. Revell
Initial release
2020-9-19

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.