generate_newick: Returns a phylo object from the argumentes generated with...

Description Usage Arguments Value Examples

View source: R/Newick_Files.R

Description

Returns a phylo object from the argumentes generated with coalsim

Usage

1

Arguments

args

is a list containing vectors of coalescent times coal_times, sampling times samp_times, and number sampled per sampling time n_sampled, etc. This list is the output of coalsim

Value

A list with two elements newikck contains the tree in phylo format, lables a vector with tip labels

Examples

1
2
3
4
constant<-function(x){return (rep(1,length(x)))}
simulation1<-coalsim(0,10,constant)
tree1<-generate_newick(simulation1)
plot(tree1$newick)

phylodyn documentation built on May 29, 2017, 1:28 p.m.