Description Usage Arguments Value Author(s) References Examples
View source: R/ouchDescendants.R
Identifies the nodes and tip taxa descended from a given ancestor in an ouchtree
or hansentree
object. Used to test whether two ‘convergent’ regimes are actually nested when randomly placing regime shifts in a Hansen model in the function surfaceSimulate
1 | ouchDescendants(node, otree)
|
node |
Which node in the ouchtree object to identify the descendants of |
otree |
An |
A vector of integers corresponding to the descendents (integers match the @nodes
element of the ouchtree
)
Travis Ingram
Ingram, T. & Mahler, D.L. (2013) SURFACE: detecting convergent evolution from comparative data by fitting Ornstein-Uhlenbeck models with stepwise AIC. Methods in Ecology and Evolution 4: 416-425.
1 2 3 4 5 6 | data(surfaceDemo)
tree<-surfaceDemo$tree
dat<-surfaceDemo$sim$dat
olist<-convertTreeData(tree,dat)
otree<-olist[[1]]
ouchDescendants(6, otree)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.