tree.layout: tree.layout

View source: R/tree.R

tree.layoutR Documentation

tree.layout

Description

Generate the coordinates for the nodes and edges of a phylogenetic tree (ape:phylo object) using one of several layout algorithms. Used before calling the generic plot functions (plot, points).

Usage

tree.layout(phy, type = "r", unscaled = FALSE)

Arguments

phy:

an S3 object of class 'phylo“

type:

what type of layout algorithm to employ:

"r"Rectangular layout

"s"Slanted (triangular) layout

"u"Unrooted (equal-angle) layout

"o"Circular (radial) layout

unscaled:

if TRUE, return a cladogram layout

Value

S3 object of class 'phyloLayout'

Examples

require(ape)
phy <- rcoal(20)
lay <- tree.layout(phy, 'r')
head(lay$edges)


ArtPoon/ggfree documentation built on July 11, 2024, 11:15 a.m.