forestPlot | R Documentation |
Draw forest plot for differences betweeen cohorts.
forestPlot(
mafCompareRes,
pVal = 0.05,
fdr = NULL,
color = c("maroon", "royalblue"),
geneFontSize = 0.8,
titleSize = 1.2,
lineWidth = 1
)
mafCompareRes |
results from |
pVal |
p-value threshold. Default 0.05. |
fdr |
fdr threshold. Default NULL. If provided uses adjusted pvalues (fdr). |
color |
vector of two colors for the lines. Default 'maroon' and 'royalblue' |
geneFontSize |
Font size for gene symbols. Default 0.8 |
titleSize |
font size for titles. Default 1.2 |
lineWidth |
line width for CI bars. Default 1 |
Plots results from link{mafCompare}
as a forest plot with x-axis as log10 converted odds ratio and differentially mutated genes on y-axis.
Nothing
mafCompare
##Primary and Relapse APL
primary.apl <- system.file("extdata", "APL_primary.maf.gz", package = "maftools")
relapse.apl <- system.file("extdata", "APL_relapse.maf.gz", package = "maftools")
##Read mafs
primary.apl <- read.maf(maf = primary.apl)
relapse.apl <- read.maf(maf = relapse.apl)
##Perform analysis and draw forest plot.
pt.vs.rt <- mafCompare(m1 = primary.apl, m2 = relapse.apl, m1Name = 'Primary',
m2Name = 'Relapse', minMut = 5)
forestPlot(mafCompareRes = pt.vs.rt)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.