View source: R/plot_bar_summary.R
plot_bar_summary | R Documentation |
Generate a plot summarising the cell type-phenotype enrichment results generated by gen_results.
plot_bar_summary(
results = load_example_results(),
count_var = "hpo_name",
group_var = "CellType",
keywords = NULL,
q_threshold = 5e-04,
effect_threshold = 1,
filters = NULL,
keep_descendants = NULL,
hpo = HPOExplorer::get_hpo(),
option = "magma",
interactive = TRUE,
show_plot = TRUE,
verbose = TRUE
)
results |
The cell type-phenotype enrichment results generated by gen_results and merged together with merge_results |
count_var |
Variable to get counts for per |
group_var |
Variable to group counts by. |
keywords |
Keywords supplied to search for phenotypes. Will be used to generate the plot title. |
q_threshold |
The q value threshold to subset the |
effect_threshold |
The minimum fold change in specific expression
to subset the |
filters |
A named list, where each element in the list is the name of a column in the data, and the vector within each element represents the values to include in the final data. |
keep_descendants |
Terms whose descendants should be kept
(including themselves).
Set to |
hpo |
Human Phenotype Ontology object, loaded from get_ontology. |
option |
A character string indicating the color map option to use. Eight options are available:
|
interactive |
Make the plot interactive. |
show_plot |
Show the plot. |
verbose |
Print messages. |
ggplot or plotly object
keep_descendants <- "Neurodevelopmental delay"
plt_pheno_count <- plot_bar_summary(count_var = "hpo_name",
group_var = "CellType",
keep_descendants = keep_descendants)
plt_cell_count <- plot_bar_summary(count_var = "CellType",
group_var = "hpo_name",
keep_descendants = keep_descendants)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.