rotatetree {genealogy}R Documentation

Function to rotate nodes

Description

Ensures that the left branch of a tree contains values with the minim position.

Usage

rotatetree(t)

Arguments

t A tree

Value

returns the rotated tree.

Author(s)

Ian Wilson

Examples

tree1 <- coalmig(rep(10,3),M=0.2);
par(mfrow=c(1,2));
plot(tree1);
plot(rotatetree(tree1));

[Package genealogy version 0.01 Index]