draw_forest {MetaVolcanoR} | R Documentation |
This function draws a forest plot for a given gene based on the REM MetaVolcano result
draw_forest(remres, gene = "MMP9", genecol = "Symbol", foldchangecol = "Log2FC", llcol = "CI.L", rlcol = "CI.R", jobname = "MetaVolcano", outputfolder = ".", draw = "PDF")
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> |
ggplot2
object
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)