plotThresh: Tree plotting with posterior probabilities of ancestral...

Description Usage Arguments Value Author(s) References See Also

View source: R/ancThresh.R

Description

This function uses the object returned by ancThresh to plot the posterior probabilities of ancestral states under the threshold model. It is also called internally by ancThresh.

Usage

1
2
plotThresh(tree, x, mcmc, burnin=NULL, piecol, tipcol="input", legend=TRUE, 
   ...)

Arguments

tree

phylogenetic tree.

x

a named vector containing discrete character states; or a matrix containing the tip species, in rows, and probabilities of being in each state, in columns.

mcmc

list object returned by ancThresh.

burnin

number of generations (not samples) to exclude as burn in; if NULL then 20 percent of generations are excluded as burn-in.

piecol

a named vector containing the colors for the posterior probabilities plotted as pie charts at internal nodes.

tipcol

a string indicating whether the tip colors should be based on the input data ("input") or sampled tip liabilities ("estimated"). These will only differ if there is uncertainty in the tip states.

legend

logical value or text to be plotted in the legend.

...

other arguments to be passed to plot.phylo - label.offset should be >0 so that tip labels and species names do not overlap.

Value

Plots a tree.

Author(s)

Liam Revell [email protected]

References

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

Revell, L. J. (2014) Ancestral character estimation under the threshold model from quantitative genetics. Evolution, bold68, 743-759.

See Also

ancThresh, plot.phylo


liamrevell/phytools documentation built on Sept. 30, 2018, 1:41 a.m.