View source: R/rescale-fitContinuous.R
make_model_phylo | R Documentation |
Rescales phylogeny to form a 'unit.tree' using parameters from fitted model
make_model_phylo(x, ...)
x |
an object inherited from a |
... |
additional arguments to be passed to |
This is a generic function which rescales the phylogeny based on the model specific information. While the class and information may differ, the object must include the 'phylo' object to be rescaled and model specific information such as model type and parameter values.
To include additional types of models, researchers will need to build a new model_info
function for the given model type. The output should be assigned a novel class.
A make_model_phylo.class
object will need to be created to perform the rescaling.
a phylo
object that can be used to from a unit.tree
object
make_unit_tree
## finch data data(finch) phy <- finch$phy data <- finch$data[,"wingL"] ## Not run: require(geiger) ## fit Brownian motion model ## using geiger's fitContinuous function fit.bm <- fitContinuous(phy=phy, dat=data, model="BM", control=list(niter=10), ncores=1) ## get model info using internal arbutus function info.bm <- model_info(fit.bm) ## rescale phylogeny based on model info make_model_phylo(info.bm) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.