tree {ARG}R Documentation

Extract a tree from an Ancestral Recombination Graph

Description

This function extracts the tree at a particular position from an ancestral recombination graph (ARG).

Usage

tree(graph, position)

Arguments

graph The ancestral recombination graph considered
position The position of the tree to extract

Details

Returns an object of class phylo which can be plotted using the ape class.

Value

An object of class phylo.

Author(s)

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

Examples

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)))

[Package ARG version 0.1 Index]