Learn R Programming

OutbreakTools (version 0.1-13)

phylo2ggphy: Convert phylogenies from the class 'phylo' to the class 'ggphy'

Description

Function to convert phylogenies from the class 'phylo' to the class 'ggphy'

Usage

phylo2ggphy(phylo, tip.dates = NULL, branch.unit = NULL,
    verbose = FALSE)

Arguments

phylo
an object of the class "phylo"
tip.dates
a vector containing the sample dates of the tip in "Date" format, the dates must be ordered like the tips
branch.unit
the unit of the branch. Either "year", "month", "day" or "subst". If a time unit is provided, together with tip.dates, then the x-axis of the phylogeny will be in the Date format
verbose
if TRUE additional information is provided at execution