tree {ARG} | R Documentation |
This function extracts the tree at a particular position from an ancestral recombination graph (ARG).
tree(graph, position)
graph |
The ancestral recombination graph considered |
position |
The position of the tree to extract |
Returns an object of class phylo
which can be plotted using the
ape
class.
An object of class phylo
.
Ian Wilson <I.J.Wilson@ncl.ac.uk>
a <- simARG(20,9,2) h <- max(treeheight(a)) par(mfrow=c(3,3),mar=c(1,1,1,1)) lapply(1:9,function(x) plot(tree(a,x)))