layoutDaylight: Equal daylight layout method for unrooted trees.

Description Usage Arguments Value References

View source: R/tree-utilities.R

Description

#' @title

Usage

1
layoutDaylight(model, branch.length, MAX_COUNT = 5)

Arguments

model

tree object, e.g. phylo or treedata

branch.length

set to 'none' for edge length of 1. Otherwise the phylogenetic tree edge length is used.

MAX_COUNT

the maximum number of iterations to run (default 5)

Value

tree as data.frame with equal angle layout.

References

The following aglorithm aims to implement the vague description of the "Equal-daylight Algorithm" in "Inferring Phylogenies" pp 582-584 by Joseph Felsenstein.

1
2
3
4
5
6
Leafs are subtrees with no children
Initialise tree using equal angle algorithm
tree_df = equal_angle(tree)

nodes = get list of nodes in tree_df breadth-first
nodes = remove tip nodes.

ggtree documentation built on Nov. 15, 2020, 2:09 a.m.