Learn R Programming

lassoscore (version 0.6)

qqpval:

make a QQ plot of p-values.

Description

This function makes QQ-plots for p-values, by default on a -log10 scale. It also shows pointwise-95% confidence bounds for the order statistics of a Uniform(0,1) distribution.

Usage

qqpval(p, cone = TRUE, log = TRUE, add = FALSE, col=1, pch=1,...)

Arguments

p
p-values

cone
Logical. Whether or not to print 95% confidence bounds for Uniform(0,1) order statistics

log
Logical. Whether or not to plot p-values on -log10 scale

add
logical. whether or not to add to an existing plot

...
other options to be passed to `plot'

col,pch
color and point type. See plot

Examples

Run this code

p <- runif(1000)
qqpval(p)



Run the code above in your browser using DataLab