convert_shifts2regions | R Documentation |
Converts a model indicated with shift values to a model with optimum values on the edges.
convert_shifts2regions(tree, shift.configuration, shift.values)
tree |
ultrametric tree of class phylo with branch lengths. |
shift.configuration |
vector of edge indices with shifts. |
shift.values |
vector of shift values. |
vector of size number of edges with optimum value of the trait on the corresponding edge.
data(lizard.tree, lizard.traits) sc <- c(55, 98, 118, 74, 14, 77, 32, 164) sv <- c(2 , 3, 4, 4, 1, 2, 0.5, 1) root.value <- -2 optimum.values <- convert_shifts2regions(lizard.tree, sc, sv) + root.value
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.