Learn R Programming

MorphSim (version 0.1.0)

reconstruct.tree: Color branches for plotting a reconstructed tree

Description

This function generates colors for branches when plotting a reconstructed tree from a morpho object containing fossil data. Branches that are part of the reconstructed tree or have fossils along them are colored black; all others are grey.

Usage

reconstruct.tree(data)

Value

A list of length 2:

b.colours

Vector of branch colors for plotting.

rem

Indices of branches with fossils.

Arguments

data

A morpho object which contains fossil data and a time-calibrated tree.