Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new function to compute the probabilities of changes along edges of t…
…he tree from stochastic mapping
- Loading branch information
1 parent
78d9d54
commit 809c1c0
Showing
3 changed files
with
56 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
\name{edgeProbs} | ||
\alias{edgeProbs} | ||
\title{Compute the relative frequencies of state changes along edges} | ||
\usage{ | ||
edgeProbs(trees) | ||
} | ||
\arguments{ | ||
\item{trees}{an object of class \code{"multiSimmap"} containing a sample of trees that are identical in topology & branch lengths with different stochastically mapped character histories.} | ||
} | ||
\description{ | ||
This function computes the relative frequencies of character state changes along edges from a sample of stochastically mapped character histories. This function assumes that all trees in the sample differ only in their mapped histories & not at all in topology or branch lengths. Note that it only asks whether the starting and ending states of the edge differ in a particular way, and thus ignores multiple-hits along a single edge. | ||
} | ||
\value{ | ||
The object that is returned is a matrix with the state changes & the relative frequency of each state change. Rows are in the order of the matrix \code{edge} for any of the mapped trees. | ||
} | ||
\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{plotSimmap}} | ||
} | ||
\keyword{phylogenetics} | ||
\keyword{plotting} |