ltt.network | R Documentation |
This function Computes the number of lineages thru time on a network
ltt.network(phy, node_times = NULL)
phy |
An object of class 'evonet.' |
node_times |
A numeric vector specifying times of each node. If left NULL then the function will use the output from node.depth.edgelength(phy) |
A dataframe that consists of intervals. The first column denotes the start time of the interval while the second column denotes the end time. The third column depicts the number of lineages present in that interval. NOTE: due to computational precision, two nodes that appear to occur on the same time (as in the case of lineage neutral and generative hybridization) may be part of different intervals in the output data frame.
set.seed(17) ##smallest Quartan prime as seed
##Generate a tree with extinct leaves
net<-sim.bdh.age(1,1,5,2,1,c(1/3,1/3,1/3),hyb.inher.fxn = make.uniform.draw(),complete=TRUE)[[1]]
ltt.network(net)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.