Learn R Programming

ouch (version 1.0-3)

tree.plot: Simple plot of phylogenetic tree.

Description

Plot the tree.

Usage

tree.plot(topology, times, names = NULL, regimes = NULL)

Arguments

topology
Specification of the topology of the phylogenetic tree. This is in the form of a vector of nonnegative integers, one for each node in the tree. The i-th number is that of the ancestor of the i-th node. The root node is distinguished by the number
times
A vector of nonnegative numbers, one per node in the tree, specifying the time at which each node is located. The root node should be assigned time 0.
names
Optional vector of species names.
regimes
A vector of codes, one for each node in the tree, specifying the selective regimes hypothesized to have been operative. Corresponding to each node, enter the code of the regime hypothesized for the branch segment terminating in that node. For the

Examples

Run this code
data(bimac)
attach(bimac)
tree.plot(ancestor,time,species,OU.LP)

Run the code above in your browser using DataLab