View source: R/treeplyr_functions.R
treedply | R Documentation |
treedata
objectRun a function on a treedata
object
treedply(tdObject, ...) ## S3 method for class 'treedata' treedply(tdObject, ...)
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
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.