View source: R/Script_PLATE_09_DE_6_2_GO_Plot.R
BioPathways.Plot | R Documentation |
Plots user-specified enriched pathways.
BioPathways.Plot(
MarvelObject,
go.terms,
y.label.size = 10,
offset = 0.5,
x.axis = "enrichment",
sort.y.axis = FALSE
)
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 |
sort.y.axis. |
Only applicable when custom vector of GO terms specified in the |
This function plots selected gene sets returned from gene ontology analysis performed previously using BioPathways
An object of class S3 with new slot MarvelObject$DE$BioPathways$Plot
.
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.