View source: R/pathways-modern.R
| plot_pathways | R Documentation |
Publication-quality replacements for the classic green GO DAG and the
horizontal bar plot. Given the output of PathwayAnalysis() (or a single
MLP result table) it draws either a dot plot that compares the enriched
terms across clusters (the enrichment-map / clusterProfiler::dotplot
idiom) or a lollipop plot for a single cluster. Dot area encodes the
number of genes in the term and colour encodes -\log_{10} p on a
perceptually-uniform viridis scale.
plot_pathways(
pathways,
style = c("dotplot", "lollipop", "circular"),
top = 8,
cluster = NULL,
source = 1,
title = NULL,
palette = "D",
max_chars = 42,
wrap = 20,
cluster_cols = NULL
)
pathways |
Output of |
style |
|
top |
Number of top terms (by p-value) to show per cluster. |
cluster |
For |
source |
Which source (index or name) of a full |
title |
Optional plot title. |
palette |
viridis option passed to |
max_chars |
Term descriptions longer than this are wrapped onto two lines for legibility (dot plot / lollipop). |
wrap |
For |
cluster_cols |
For |
A ggplot object (invisibly); it is also printed so the function works directly on an open graphics device.
PathwayAnalysis(), PlotPathways()
## Not run:
P <- PathwayAnalysis(List = L, geneExpr = ge, nrclusters = 3,
method = c("limma", "MLP"), geneInfo = geneInfo,
geneSetSource = "GOBP", sign = 0.05, niter = 2)
plot_pathways(P, style = "dotplot", top = 8) # compare clusters
plot_pathways(P, style = "lollipop", cluster = 1) # one cluster
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.