stree: Generates Systematic Regular Trees

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/rtree.R

Description

This function generates trees with regular shapes.

Usage

1
stree(n, type = "star", tip.label = NULL)

Arguments

n

an integer giving the number of tips in the tree.

type

a character string specifying the type of tree to generate; four choices are possible: "star", "balanced", "left", "right", or any unambiguous abbreviation of these.

tip.label

a character vector giving the tip labels; if not specified, the tips "t1", "t2", ..., are given.

Details

The types of trees generated are:

Value

An object of class "phylo".

Author(s)

Emmanuel Paradis

See Also

compute.brlen, rtree

Examples

1
2
3
4
5
layout(matrix(1:4, 2, 2))
plot(stree(100))
plot(stree(128, "balanced"))
plot(stree(100, "left"))
plot(stree(100, "right"))

Example output



ape documentation built on April 25, 2021, 9:06 a.m.