plotVolcanoPathway | R Documentation |
Plot volcano plot from Pathway analysis results
plotVolcanoPathway(
PAResult,
xAxis = c("normalizedScore", "score"),
yAxis = c("-log10(pFDR)", "-log10(p.value)"),
pThreshold = 0.05,
label = "name",
IDsToLabel = NULL,
topToLabel = 10,
sideToLabel = c("both", "left", "right")
)
PAResult |
A data frame with Pathway analysis results. The columns are ID, name, description, p.value, pFDR, pathwaySize, nDE, score and normalizedScore. |
xAxis |
The column to use for the x-axis. |
yAxis |
The column to use for the y-axis. |
pThreshold |
The p-value threshold to use for the horizontal line. |
label |
The column to use for the labels. Default is "name". |
IDsToLabel |
A vector of IDs to label. When NULL, the top pathways are labeled. Default is NULL. |
topToLabel |
The number of top pathways to label when IDsToLabels is NULL. |
sideToLabel |
The side of the plot to label. |
A ggplot2 object.
library(RCPA)
affyFgseaResult <- loadData("affyFgseaResult")
agilFgseaResult <- loadData("agilFgseaResult")
RNASeqFgseaResult <- loadData("RNASeqFgseaResult")
metaPAResult <- loadData("metaPAResult")
p1 <- RCPA::plotVolcanoPathway(affyFgseaResult, sideToLabel = "left")
p2 <- RCPA::plotVolcanoPathway(agilFgseaResult, sideToLabel = "left")
p3 <- RCPA::plotVolcanoPathway(RNASeqFgseaResult, sideToLabel = "left")
p4 <- RCPA::plotVolcanoPathway(metaPAResult, sideToLabel = "left")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.