
Plot enrichment results using -log10(FDR)
get_enrichment_plot.RdGenerates a dot plot of enrichment results for enrichResult, gseaResult,
or compareClusterResult objects (including those returned by
enrichMsigDB()). Points are sized by gene/set count and coloured by
-log10(FDR). For compareCluster results, the plot is faceted by cluster with
top terms selected per cluster.
Examples
if (FALSE) { # \dontrun{
v <- example_vista()
com <- names(comparisons(v))[1]
if (requireNamespace('msigdbr', quietly = TRUE)) {
ms <- try(get_msigdb_enrichment(v, sample_comparison = com, regulation = 'Up', from_type = 'ENSEMBL'), silent = TRUE)
if (!inherits(ms, 'try-error') && !is.null(ms$enrich)) print(get_enrichment_plot(ms$enrich))
}
} # }