draw_forest {MetaVolcanoR} | R Documentation

## A function to draw a forest plot from the REM MetaVolcano result

### Description

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

### Usage

    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

    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)

[Package MetaVolcanoR version 1.2.0 Index]