plot_clust_enrichments | R Documentation |
Plot Cluster Enrichments
Display cluster enrichments for gene GO terms.
plot_clust_enrichments(
object,
stat_shown = c("qvalue", "p.adjust", "pvalue"),
nb_go_term = 3,
gradient_palette = colors_for_gradient("Ju1"),
label_fun = NULL,
term_order = NULL,
return_mat = FALSE,
floor = NULL
)
object |
An object of class "ClusterSet". |
stat_shown |
A character string specifying the statistic to be shown. Must be one of "qvalue", "p.adjust", or "pvalue". Defaults to "qvalue". |
nb_go_term |
An integer specifying the number of top GO terms to select per cluster. Defaults to 6. Note that some terms may be shared between clusters. |
gradient_palette |
A vector of colors specifying the gradient palette for the color scale. Defaults to colors_for_gradient("Magma"). |
label_fun |
A function to customize the labels of the GO terms. Defaults to NULL. |
term_order |
A vector specifying the desired order of the GO terms. Defaults to NULL. |
return_mat |
Logical. Do not return a ggplot object but the prepared matrix. |
floor |
A value for flooring the statistic. |
A ggplot object displaying the cluster enrichments for the GO terms.
enrich_go
colors_for_gradient
load_example_dataset("8028226/files/pbmc3k_medium_clusters_enr_sub")
plot_clust_enrichments(pbmc3k_medium_clusters_enr_sub)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.