View source: R/match_branchlabel_to_prob.R
match_branchlabel_to_prob | R Documentation |
We have a look-up table of labels and values. We can join the values to nodes/edges via their labels.
match_branchlabel_to_prob(probs_names, branch_probs_long)
probs_names |
label-probability look-up |
branch_probs_long |
long format tree object with labels |
dataframe
match_branch_to_label
probs_long <- tibble::tribble(~from, ~to, ~name, 1, 2, "pos", 1, 3, "neg") probs_names <- tibble::tribble(~prob, ~name, 0.4, "pos", 0.6, "neg") match_branchlabel_to_prob(probs_names, probs_long)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.