View source: R/plot_severity_vs_nphenotypes.R
plot_severity_vs_nphenotypes | R Documentation |
Plot the mean composite GPT severity score of all all the phenotypes each cell type is significantly associated with vs. the number of phenotypes each cell types is significantly associated with.
plot_severity_vs_nphenotypes(
results,
gpt_annot = HPOExplorer::gpt_annot_codify(),
cl = get_cl(),
q_threshold = 0.5,
n_label = 3,
size = 3,
min.segment.length = 0,
remove_subtitle = FALSE,
remove_caption = TRUE,
point_fill = ggplot2::alpha("white", 0.75),
base_size = 8,
run_prune_ancestors = FALSE,
...
)
results |
The cell type-phenotype enrichment results generated by gen_results and merged together with merge_results |
gpt_annot |
A data.table of GPT annotations. |
cl |
Cell Ontology object. |
q_threshold |
The q value threshold to subset the |
n_label |
The number of top and bottom cell types to label in the plot. Top/bottom terms are determined by sorting on both the x and y axes. |
size |
Label text size. |
min.segment.length |
Skip drawing segments shorter than this, as unit or
number. Defaults to 0.5. (Default unit is lines, but other units can be
specified by passing |
remove_subtitle |
Remove the formula in the subtitle. See ggscatterstats for details. |
remove_caption |
Remove the formula in the caption. See ggscatterstats for details. |
point_fill |
Fill color of the points. |
base_size |
base font size, given in pts. |
run_prune_ancestors |
Prune redundant ancestral terms if any of their descendants are present. Passes to prune_ancestors. |
... |
Arguments passed on to
|
results <- load_example_results()
out <- plot_severity_vs_nphenotypes(results=results)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.