spiral_phylo: Draw phylogenetic tree

Description Usage Arguments Value Examples

View source: R/dendrogram.R

Description

Draw phylogenetic tree

Usage

1
2
spiral_phylo(obj, gp = gpar(), log = FALSE, reverse = FALSE,
    group = NULL, group_col = NULL, track_index = current_track_index())

Arguments

obj

A phylo object.

gp

Graphics parameters of the tree edges.

log

Whether the height of the tree should be log-transformed (log10(x + 1))?

reverse

Whether the tree should be reversed?

group

A categorical variable for splitting the tree.

group_col

A named vector which contains group colors.

track_index

Index of the track.

Value

Height of the phylogenetic tree.

Examples

1
2
3
4
5
6
require(ape)
data(bird.families)
n = length(bird.families$tip.label)
spiral_initialize(xlim = c(0, n), start = 360, end = 360*3)
spiral_track(height = 0.8)
spiral_phylo(bird.families)

spiralize documentation built on Feb. 6, 2022, 1:06 a.m.