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

plotTree.datamatrix

Plot a tree with a discrete character data matrix at the tips


Description

Function plots a phylogeny next to a matrix of discrete character data.

Usage

plotTree.datamatrix(tree, X, ...)

Arguments

tree

an object of class "phylo".

X

a data frame with columns as factors.

...

optional arguments.

Value

Invisibly returns a list containing the font size, a list of the colors used for each column of the plotted data matrix, and the x-coordinate of the rightmost edge of the matrix.

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.