treelength {ARG}R Documentation

Calculate the tree lengths on an ARG

Description

Calculate the lengths of trees under each site of an ancestral recombination graph

Usage

treelength(graph)
treeheight(graph)

Arguments

graph An ancestral recombination graph

Value

Returns an array of times (one for each site).

Author(s)

Ian Wilson <I.J.Wilson@ncl.ac.uk>

See Also

simARG

Examples

a <- simARG(ss=100,sites=1000,rec=0.01)
par(mfrow=c(2,1))
plot(treeheight(a),type="l");
plot(treelength(a),type="l");

[Package ARG version 0.1 Index]