Description Usage Arguments Details Value Examples
View source: R/treeplyr_functions.R
Run a function on a treedata
object
1 2 3 4 |
tdObject |
A treedata object |
... |
A function call. |
This function allows arbitrary R functions that use trees and data to be run on
treedata
objects.
Function output
1 2 3 4 5 | data(anolis)
td <- make.treedata(anolis$phy, anolis$dat)
treedply(td, geiger::fitContinuous(phy, getVector(td, SVL), model="BM", ncores=1))
treedply(td, phytools::phylosig(phy, getVector(td, awesomeness), "lambda", test=TRUE))
treedply(td, phytools::phenogram(phy, getVector(td, SVL), ftype="off", spread.labels=FALSE))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.