hist_pvals_pi0: histrogram of p-values

Description Usage Arguments Value Author(s)

Description

Plot a histogram of unadjusted P-values, and the expected proportion of truly nulls, and the estimated pi0 from fitting the non-NA pvalues through qvalue with default options.

Usage

1
2
3
  hist_pvals_pi0(pvals, bins = 20, main = "",
    xlab = "unadjusted P-values", annotate = TRUE,
    theme = c("red", "black"))

Arguments

pvals

a numeric vector of unadjusted pvalues, in [0,1]

bins

the number of histogram bins

main

the plot title

xlab

the plot x-axis label

annotate

logical: if TRUE, annotate the plots with 2 horizontal lines, at pi0 under H0, and estimated pi0

theme

one of “red” or “black”, where “red” colours the bars from deep red to white, or “black” leaves the bars black & white.

Value

nothing.

Author(s)

Mark Cowley, 2008-10-02


drmjc/microarrays documentation built on May 15, 2019, 2:26 p.m.