plot_rem: A function to plot the Random Effect Model (REM) MetaVolcano

Description Usage Arguments Value Examples

View source: R/plot_rem.R

Description

This function plots the REM MetaVolcano using ggplot2

Usage

1
plot_rem(meta_diffexp, jobname, outputfolder, genecol, metathr)

Arguments

meta_diffexp

data.frame/data.table containing the REM results from rem_mv() <data.table/data.frame>

jobname

name of the running job <string>

outputfolder

/path where to write the results/ <string>

genecol

column name of the variable to label genes in the .html file <string>

metathr

top percentage of perturbed genes to be highlighted <double>

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 <- plot_rem(mv@metaresult, "MV", ".", "Symbol", 0.01)
plot(gg)

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