3 \title{Generates Systematic Regular Trees}
5 stree(n, type = "star", tip.label = NULL)
8 \item{n}{an integer giving the number of tips in the tree.}
9 \item{type}{a character string specifying the type of tree to
10 generate; four choices are possible: \code{"star"},
11 \code{"balanced"}, \code{"left"}, \code{"right"}, or any unambiguous
12 abbreviation of these.}
13 \item{tip.label}{a character vector giving the tip labels; if not
14 specified, the tips "t1", "t2", ..., are given.}
17 This function generates trees with regular shapes.
20 The types of trees generated are:
23 \item{``star''}{a star (or comb) tree with a single internal node.}
24 \item{``balanced''}{a fully balanced dichotmous rooted tree;
25 \code{n} must be of power of 2 (2, 4, 8, \dots).}
26 \item{``left''}{a fully unbalanced rooted tree where the largest
27 clade is on the left-hand side when the tree is plotted upwards.}
28 \item{``right''}{same than above but in the other direction.}
32 An object of class \code{"phylo"}.
34 \author{Emmanuel Paradis}
36 \code{\link{compute.brlen}}, \code{\link{rtree}}
39 layout(matrix(1:4, 2, 2))
41 plot(stree(128, "balanced"))
42 plot(stree(100, "left"))
43 plot(stree(100, "right"))