mod_plot_lollipop_ui: plotforest: Wraps around maftools::forestPlot to more...

View source: R/mod_plot_lollipop.R

mod_plot_lollipop_uiR Documentation

plotforest: Wraps around maftools::forestPlot to more explicitly handle pval VS fdr option and allow both to be passed while onl using the value set by bool 'threshold_on_fdr'

Description

plotforest: Wraps around maftools::forestPlot to more explicitly handle pval VS fdr option and allow both to be passed while onl using the value set by bool 'threshold_on_fdr'

Usage

mod_plot_lollipop_ui(id)

Arguments

id

Internal parameters for shiny.

Examples

plotforest <- function(
    mafCompareRes,
    pVal = 0.05,
    fdr = 0.05,
    threshold_on_fdr,
    color=NULL,
    geneFontSize = 1.2,
    lineWidth = 2.2,
    titleSize = 1.2
 ){
  message("running")
  if (threshold_on_fdr)
    maftools::forestPlot(
      mafCompareRes = mafCompareRes,
      fdr = fdr,
      color = color,
      geneFontSize = geneFontSize,
      lineWidth = lineWidth,
      titleSize = titleSize
     )
  else{
    maftools::forestPlot(
      mafCompareRes = mafCompareRes,
      pVal = pVal,color = color,
      geneFontSize = geneFontSize,
      lineWidth = lineWidth,
      titleSize = titleSize
    )
   }
}

CCICB/CRUX documentation built on Jan. 28, 2024, 10:12 p.m.