Learn R Programming

MCMCtreeR (version 1.1)

readMCMCtree: Read MCMCtree output tree into R

Description

Read MCMCtree output tree into R to produce time-scaled tree in APE format, and a table of the mean and 95

Usage

readMCMCtree(inputPhy, forceUltrametric = TRUE, from.file = TRUE)

Arguments

inputPhy

file directory of 'Figtree' output from MCMCtree

forceUltrametric

alters branch lengths at tips so tree is fully ultrametric (default = TRUE)

from.file

Logical. Read a tree from file or locally from within R?

Value

apePhy time-scaled output tree from MCMCtree in APE format

nodeAges mean and 95

Examples

Run this code
# NOT RUN {
data(MCMCtree.output)
attach(MCMCtree.output)
# tree and node ages
readMCMCtree(MCMCtree.phy, from.file=FALSE)
# }

Run the code above in your browser using DataLab