View source: R/plot_top_phenos.R
plot_top_phenos | R Documentation |
Plot the most severe phenotypes per severity class: Profound, Severe, Moderate, Mild. The exception to this is the "Mild" class, where the least severe phenotypes will be taken instead of the most severe phenotypes.
plot_top_phenos(
res_class = gpt_annot_class(),
keep_ont_levels = seq(3, 17),
keep_descendants = "Phenotypic abnormality",
n_per_class = 10,
annotation_order = NULL,
split_by_congenital = TRUE,
axis.text.x = c(FALSE, TRUE),
legend.position = "right",
...
)
res_class |
Output of the gpt_annot_class function. |
keep_ont_levels |
Only keep phenotypes at certain absolute ontology levels to keep. See add_ont_lvl for details. |
keep_descendants |
Terms whose descendants should be kept
(including themselves).
Set to |
n_per_class |
Number of phenotypes per severity class to include. |
annotation_order |
The order of the annotations to include. |
split_by_congenital |
Split the phenotypes by congenital onset (congenital = always/often, noncongenital = never/rarely). |
axis.text.x |
Whether to include x-axis text in top and bottom subplots. |
legend.position |
the default position of legends ("none", "left", "right", "bottom", "top", "inside") |
... |
Arguments passed on to
|
res_class <- gpt_annot_class()
out <- plot_top_phenos(res_class = res_class)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.