draw_forest: A function to draw a forest plot from the REM MetaVolcano...

Description Usage Arguments Value Examples

View source: R/draw_forest.R

Description

This function draws a forest plot for a given gene based on the REM MetaVolcano result

Usage

1
2
3
draw_forest(remres, gene = "MMP9", genecol = "Symbol",
  foldchangecol = "Log2FC", llcol = "CI.L", rlcol = "CI.R",
  jobname = "MetaVolcano", outputfolder = ".", draw = "PDF")

Arguments

remres

MetaVolcano object. Output of the rem_mv() function <MetaVolcano>

gene

query gene to plot

genecol

name of the variable with genes <string>

foldchangecol

the column name of the foldchange variable <string>

llcol

left limit of the fold change coinfidence interval variable name <string>

rlcol

right limit of the fold change coinfidence interval variable name <string>

jobname

name of the running job <string>

outputfolder

/path where to write the results/ <string>

draw

either 'PDF' or 'HTML' to save metaolcano as .pdf or .html respectively <string>

Value

ggplot2 object

Examples

1
2
3
4
5
6
7
data(diffexplist)
diffexplist <- lapply(diffexplist, function(del) {
    dplyr::filter(del, grepl("MP", Symbol))
})
mv <- rem_mv(diffexplist, metathr = 0.1)
gg <- draw_forest(mv, gene="MMP9")
plot(gg)

MetaVolcanoR documentation built on Nov. 8, 2020, 7:52 p.m.