ape (version 2.5-3)

stree: Generates Systematic Regular Trees

Description

This function generates trees with regular shapes.

Usage

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

Arguments

Value

An object of class "phylo".

Details

The types of trees generated are:

  • ``star''
{a star (or comb) tree with a single internal node.} ``balanced''{a fully balanced dichotmous rooted tree; n must be of power of 2 (2, 4, 8, ...).} ``left''{a fully unbalanced rooted tree where the largest clade is on the left-hand side when the tree is plotted upwards.} ``right''{same than above but in the other direction.}

See Also

compute.brlen, rtree

Examples

Run this code
layout(matrix(1:4, 2, 2))
plot(stree(100))
plot(stree(128, "balanced"))
plot(stree(100, "left"))
plot(stree(100, "right"))

Run the code above in your browser using DataCamp Workspace