View source: R/gpt_annot_plot_branches.R
gpt_annot_plot_branches | R Documentation |
Plot annotations from GPT by ancestral HPO branch.
gpt_annot_plot_branches(
hpo = get_hpo(),
gpt_annot = gpt_annot_read(hpo = hpo),
keep_descendants = NULL,
keep_ont_levels = NULL,
metric = "congenital_onset",
fill_lab = gsub("_", " ", metric),
show_plot = TRUE
)
hpo |
Human Phenotype Ontology object, loaded from get_ontology. |
gpt_annot |
Output from gpt_annot_read. |
keep_descendants |
Terms whose descendants should be kept
(including themselves).
Set to |
keep_ont_levels |
Only keep phenotypes at certain absolute ontology levels to keep. See add_ont_lvl for details. |
metric |
Annotation metric to plot. |
fill_lab |
Fill label in legend. |
show_plot |
Show the plot. |
Named list of plot and data.
out <- gpt_annot_plot_branches()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.