View source: R/Script_DROPLET_05_DE_6_2_GO_Plot.R
BioPathways.Plot.10x | R Documentation |
Plots user-specified enriched pathways.
BioPathways.Plot.10x(MarvelObject, go.terms, y.label.size = 10, offset = 0.5)
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. pathway names. |
offset |
Numeric value. The value on the x-axis to substract or add to increase the plot margins. |
An object of class S3 containing with new slot MarvelObject$DE$BioPathways$Plot
.
marvel.demo.10x <- readRDS(system.file("extdata/data",
"marvel.demo.10x.rds",
package="MARVEL")
)
# Define top pathways to plot
go.terms <- marvel.demo.10x$DE$BioPathways$Table$Description
go.terms <- go.terms[c(1:10)]
# Plot
marvel.demo.10x <- BioPathways.Plot.10x(
MarvelObject=marvel.demo.10x,
go.terms=go.terms
)
# Check outpout
marvel.demo.10x$DE$BioPathways$Plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.