treelength {ARG} | R Documentation |
Calculate the lengths of trees under each site of an ancestral recombination graph
treelength(graph) treeheight(graph)
graph |
An ancestral recombination graph |
Returns an array of times (one for each site).
Ian Wilson <I.J.Wilson@ncl.ac.uk>
a <- simARG(ss=100,sites=1000,rec=0.01) par(mfrow=c(2,1)) plot(treeheight(a),type="l"); plot(treelength(a),type="l");