Learn R Programming

jrich (version 0.60-35)

IndexW: W index value for a single topology.

Description

This function assigns the weight according to the ramification patterns (see Van-Wright et al., 1981). The input tree is reordered in post order. Returns a vector with weights.

Usage

IndexW(tree = tree)

Arguments

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

Examples

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


Run the code above in your browser using DataLab