Learn R Programming

jrich (version 0.60-35)

IndexI: I index value for a single topology.

Description

This function assigns the same weight to sister clades (see Van-Wright et al., 1981). The input tree is reordered in post order.

Usage

IndexI(tree = tree)

Arguments

tree
is a single tree with n terminals, an ape phylo object.

Value

Returns a vector with weights.

Examples

Run this code
 library(jrich)
 data(tree)
 plot(tree)
 indexi               <- IndexI(tree)
 newTree              <- tree
 newTree$tip.label    <- indexi
 plot(newTree)
 


Run the code above in your browser using DataLab