p.qqplot: P value Q-Q plot

Description Usage Arguments Details Author(s) Examples

View source: R/p.qqplot.R

Description

P value Q-Q plot with optional confidence interval

Usage

1
2
       p.qqplot(pvalues,outf="qq",outfmt="jpg",draw.conf=TRUE,
          conf.col="lightgray",conf.alpha=.95,pch=20,col="black",reducesize=0)

Arguments

pvalues

An numeric vector of P values

outf

figure file name, default "qq"

outfmt

Output figure file format, "jpg" or "eps"

draw.conf

Whether to draw confidence interval of expected P values under NULL hypothesis

conf.col

Color code of confidence interval

conf.alpha

Confidence interval range, 0.95 in default

pch

Point type code

col

Point color code

reducesize

A positive interger, larger the value, smaller the eps file size. Smaller file size is achieved by skipping some densely packed data points

Details

P value Q-Q plot with optional confidence interval

Author(s)

Zongli Xu

Examples

1
2
dat=simubed()
p.qqplot(pvalues=dat$p,draw.conf=TRUE,outf="qq_try",outfmt="jpg")

ENmix documentation built on April 2, 2021, 6 p.m.