Description Usage Arguments Details Value Examples
Plot
1 2 3 4 5 6 7 8 9 | plot_shifts(
tree,
shifts,
true_scores = NULL,
obs_scores = NULL,
est_scores = NULL,
sup_scores = NULL,
digits = 3
)
|
tree |
Phylo-class object |
shifts |
Branch-associated shifts vector, sorted in cladewise order |
true_scores |
Leaf-associated scores, as a named vector. |
obs_scores |
Leaf-associated scores, as a named vector. |
est_scores |
Leaf-associated scores, as a named vector. |
sup_scores |
A list of lists for additional scores to plot. Each list must contain at least a 'scores" element and eventually a 'title" and 'color' one. |
digits |
Number of digits to round to. |
If scores is unnamed, assumes scores are in the same order as
tree$tip.label
a ggplot
object, as created by ggtree
1 2 3 4 | tree <- ape::read.tree(text = "(((A,B),C),(D,E));")
shifts <- c(0, -3, 0, 0, 0, 0, -2, 0)
scores <- c(-3.2, -2.8, 0.1, -2.1, -0.1)
plot_shifts(tree, shifts, obs_scores = scores)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.