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

ctt

Generates (or simulates) a 'changes through time' plot from a set of stochastic map character histories


Description

This function generates a 'changes through time' plot in the style of a lineage-through-time (LTT) plot. It shows the mean rate or the mean number of changes per unit time from a set of stochastic character map trees.

Usage

ctt(trees, segments=20, ...)
sim.ctt(tree, Q, anc=NULL, nmaps=100, ...)
sim.multiCtt(tree, Q, anc=NULL, nmaps=100, nsim=100, ...)

Arguments

trees

an object of class "multiSimmap".

segments

number of segments to break up the history of the tree.

tree

for sim.ctt, an object of class "phylo".

Q

for sim.ctt, a transition matrix to use for simulation.

anc

ancestral state at the root node for simulation.

nmaps

number of stochastic maps per simulation.

nsim

for sim.multiCtt only, the number of simulations to run.

...

optional arguments.

Value

An object of class "ctt" or "multiCtt".

Author(s)

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.