BioPathways.Plot {MARVEL} | R Documentation |
Plot pathway enrichment analysis results
Description
Plots user-specified enriched pathways.
Usage
BioPathways.Plot(
MarvelObject,
go.terms,
y.label.size = 10,
offset = 0.5,
x.axis = "enrichment"
)
Arguments
MarvelObject |
Marvel object. S3 object generated from |
go.terms |
Vector of character strings. Names of pathways to plot. Should match pathway names in column |
y.label.size |
Numeric value. Size of y-axis tick labels, i.e. gene set names. |
offset |
Numeric value. The -log10(p-value) on the x-axis to substract or add to increase the plot margins. |
x.axis |
Character string. If set to |
Details
This function plots selected gene sets returned from gene ontology analysis performed previously using BioPathways
Value
An object of class S3 with new slot MarvelObject$DE$BioPathways$Plot
.
Examples
marvel.demo <- readRDS(system.file("extdata/data", "marvel.demo.rds", package="MARVEL"))
# Define go terms to plot
df <- marvel.demo$DE$BioPathways$Table
go.terms <- df$Description[c(1:10)]
# Plot
marvel.demo <- BioPathways.Plot(MarvelObject=marvel.demo,
go.terms=go.terms,
offset=10
)
# Check output
marvel.demo$DE$BioPathways$Plot