]> git.donarmstrong.com Git - ape.git/blobdiff - man/rtree.Rd
some small changes
[ape.git] / man / rtree.Rd
index b30109cdcbf86eafcd99942067edb0ab04f497fb..514f39bbdbf1ec9a50c73329fb178d1c96b9ec00 100644 (file)
@@ -3,6 +3,12 @@
 \alias{rcoal}
 \alias{rmtree}
 \title{Generates Random Trees}
+\description{
+  These functions generate trees by splitting randomly the edges
+  (\code{rtree}) or randomly clustering the tips (\code{rcoal}).
+  \code{rtree} generates general trees, and \code{rcoal} generates
+  coalescent trees. The algorithms are described in Paradis (2012).
+}
 \usage{
 rtree(n, rooted = TRUE, tip.label = NULL, br = runif, ...)
 rcoal(n, tip.label = NULL, br = "coalescent", ...)
@@ -23,12 +29,6 @@ rmtree(N, n, rooted = TRUE, tip.label = NULL, br = runif, ...)
   \item{\dots}{further argument(s) to be passed to \code{br}.}
   \item{N}{an integer giving the number of trees to generate.}
 }
-\description{
-  These functions generate trees by splitting randomly the edges
-  (\code{rtree}) or randomly clustering the tips (\code{rcoal}).
-  \code{rtree} generates general (non-ultrametric) trees, and
-  \code{rcoal} generates coalescent (ultrametric) trees.
-}
 \details{
   The trees generated are bifurcating. If \code{rooted = FALSE} in
   (\code{rtree}), the tree is trifurcating at its root.
@@ -44,6 +44,10 @@ rmtree(N, n, rooted = TRUE, tip.label = NULL, br = runif, ...)
   An object of class \code{"phylo"} or of class \code{"multiPhylo"} in
   the case of \code{rmtree}.
 }
+\references{
+  Paradis, E. (2012) \emph{Analysis of Phylogenetics and Evolution with
+    R (Second Edition).} New York: Springer.
+}
 \author{Emmanuel Paradis}
 \seealso{
   \code{\link{stree}}, \code{\link{rlineage}}