plotTree.datamatrix: Plot a tree with a discrete character data matrix at the tips

View source: R/plotTree.datamatrix.R

plotTree.datamatrixR Documentation

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

Description

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)

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

dotTree, phylo.heatmap


liamrevell/phytools documentation built on March 4, 2024, 3:27 a.m.