File: ladderize.Rd

package info (click to toggle)
r-cran-ape 5.7-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,932 kB
  • sloc: ansic: 7,626; cpp: 116; sh: 17; makefile: 2
file content (29 lines) | stat: -rw-r--r-- 767 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
\name{ladderize}
\alias{ladderize}
\title{Ladderize a Tree}
\usage{
ladderize(phy, right = TRUE)
}
\arguments{
  \item{phy}{an object of class \code{"phylo"}.}
  \item{right}{a logical specifying whether the smallest clade is on the
    right-hand side (when the tree is plotted upwards), or the opposite
    (if \code{FALSE}).}
}
\description{
  This function reorganizes the internal structure of the tree to get
  the ladderized effect when plotted.
}
\author{Emmanuel Paradis}
\seealso{
  \code{\link{plot.phylo}}, \code{\link{reorder.phylo}}
}
\examples{
tr <- rcoal(50)
layout(matrix(1:4, 2, 2))
plot(tr, main = "normal")
plot(ladderize(tr), main = "right-ladderized")
plot(ladderize(tr, FALSE), main = "left-ladderized")
layout(matrix(1, 1))
}
\keyword{manip}