Skip to contents

Plots a histogram of p-values

Usage

histPValue_HC(pval_ll, bins = 80, pi0 = 1)

Arguments

pval_ll

A vector of the p-values.

bins

A integer indicating the number of cells for the histogram

pi0

A float between 0 and 1 corresponding to the proportion of true null hypotheses.

Value

A histogram of the p-values with pi0

Author

Samuel Wieczorek

Examples

data(subR25prot)
obj <- subR25prot
# Simulate imputation
obj <- NAIsZero(obj, 1)
obj <- NAIsZero(obj, 2)
allComp <- limmaCompleteTest(
SummarizedExperiment::assay(obj[[length(obj)]]), 
design.qf(obj), 
comp.type="OnevsOne")
histPValue_HC(allComp$P_Value[1])