File: phylo.toBackbone.Rd

package info (click to toggle)
r-cran-phytools 0.6-60-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,620 kB
  • sloc: makefile: 2
file content (29 lines) | stat: -rw-r--r-- 1,449 bytes parent folder | download
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{phylo.toBackbone}
\alias{phylo.toBackbone}
\alias{backbone.toPhylo}
\title{Converts tree to backbone or vice versa}
\usage{
phylo.toBackbone(x, trans, ...)
backbone.toPhylo(x)
}
\arguments{
	\item{x}{an object of class \code{"phylo"} (for \code{phylo.toBackbone}); or an object of class \code{"backbonePhylo"} (for \code{backbone.toPhylo}).}
	\item{trans}{data frame containing the attributes necessary to translate a backbone tree to an object of class \code{"backbonePhylo"}. The data frame should contain the following variables: \code{tip.label}: the tip labels in the input tree (not all need be included); \code{clade.label}: labels for the unobserved subtrees; \code{N}: number of species in each subtree; and \code{depth}: desired depth of each subtree. \code{depth} for each terminal taxon in \code{x} cannot be greater than the terminal edge length for that taxon.}
	\item{...}{optional arguments.}
}
\description{
	Converts between \code{"phylo"} and \code{"backbonePhylo"}.
}
\value{
	Either an object of class \code{"phylo"} or an object of class \code{"backbonePhylo"}, depending on the method.
}
\references{
	Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). \emph{Methods Ecol. Evol.}, \bold{3}, 217-223.
}
\author{Liam Revell \email{liam.revell@umb.edu}}
\seealso{
	\code{\link{plot.backbonePhylo}}
}
\keyword{phylogenetics}
\keyword{plotting}