View source: R/asr_diagnostics.R
visCompareTwoRateModels | R Documentation |
Visually compare the results of two rate models by plotting the differences between them on the phylogenetic tree Relative entropy is calculated with A as the "target" and B as the "estimate" Switching the order of rate model A and rate model B DOES give different relative entropies (relative entropy is not symmetric)
visCompareTwoRateModels(
A,
B,
treesObj,
phenvals,
mode = "entropy",
cex = 0.5,
...
)
A |
the first rate model |
B |
teh second rate model |
treesObj |
the trees object returned by readTrees |
phenvals |
the named phenotype vector with names matching the tip labels in the trees object |
mode |
indicates how to represent differences between ancestral reconstructions. When mode is "entropy" the relative entropies between ancestral likelihoods at each node are plotted along the branches of the trees. When mode is "match", nodes are colored red when state assignments are different and red when they are the same. |
cex |
a graphical argument representing the size of node labels and tip labels |
a list of relative entropies or state assignemtns and ancestral likelihoods under each rate model
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.