From 68231d0918c593b45fdfa419c6a58e10b1c993b9 Mon Sep 17 00:00:00 2001 From: paradis Date: Sat, 13 Mar 2010 13:47:32 +0000 Subject: [PATCH] adding stree.Rd git-svn-id: https://svn.mpl.ird.fr/ape/dev/ape@113 6e262413-ae40-0410-9e79-b911bd7a66b7 --- man/stree.Rd | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 man/stree.Rd diff --git a/man/stree.Rd b/man/stree.Rd new file mode 100644 index 0000000..fc0e719 --- /dev/null +++ b/man/stree.Rd @@ -0,0 +1,45 @@ +\name{stree} +\alias{stree} +\title{Generates Systematic Regular Trees} +\usage{ +stree(n, type = "star", tip.label = NULL) +} +\arguments{ + \item{n}{an integer giving the number of tips in the tree.} + \item{type}{a character string specifying the type of tree to + generate; four choices are possible: \code{"star"}, + \code{"balanced"}, \code{"left"}, \code{"right"}, or any unambiguous + abbreviation of these.} + \item{tip.label}{a character vector giving the tip labels; if not + specified, the tips "t1", "t2", ..., are given.} +} +\description{ + This function generates trees with regular shapes. +} +\details{ + The types of trees generated are: + + \itemize{ + \item{``star''}{a star (or comb) tree with a single internal node.} + \item{``balanced''}{a fully balanced dichotmous rooted tree; + \code{n} must be of power of 2 (2, 4, 8, \dots).} + \item{``left''}{a fully unbalanced rooted tree where the largest + clade is on the left-hand side when the tree is plotted upwards.} + \item{``right''}{same than above but in the other direction.} + } +} +\value{ + An object of class \code{"phylo"}. +} +\author{Emmanuel Paradis} +\seealso{ + \code{\link{compute.brlen}}, \code{\link{rtree}} +} +\examples{ +layout(matrix(1:4, 2, 2)) +plot(stree(100)) +plot(stree(128, "balanced")) +plot(stree(100, "left")) +plot(stree(100, "right")) +} +\keyword{datagen} -- 2.39.2