Skip to contents

PlotHypergeometric - plot results returned by RunHypergeometricTest

Usage

PlotHypergeometric(
  hyperg_result,
  p.adjust.filter = 0.05,
  genenumber_filter = 0,
  savepath = figpath,
  savename,
  title,
  height = 10,
  width = 8
)

Arguments

hyperg_result

result returned by `RunHypergeometricTest`

p.adjust.filter

filter results

genenumber_filter

number of genes within an enrichment minimum.

savepath

save oath

savename

name of object saved to save_path

title

title of plot

height

ggsave param

width

ggsave param

Value

nothing

Examples

if (FALSE) {
load(termdf) # this term2gene dataframe is included in the package see clusterProfiler
hyp = scglmmr::RunHypergeometricTest(result_list = fit_res,
                                     TERM2GENE_dataframe = termdf,
                                     pval_threshold = 0.1,
                                     logFC_threshold = 0,
                                     usefdr_threshold = FALSE)
# plot results
scglmmr::PlotHypergeometric(hyperg_result = hyp,
                            p.adjust.filter = 0.1,
                            genenumber_filter = 2,
                            savepath = figpath,
                            savename = "name",
                            title = "title")
 }