qqunif: Q-Q plot for a uniform distribution.

qqunifR Documentation

Q-Q plot for a uniform distribution.

Description

qqunif makes a Q-Q plot against a uniform distribution for the supplied data vector.

Usage

qqunif(x, logplot = FALSE, lbs = 1:length(x), texton = FALSE, 
          xylim = NULL, main = "Q-Q plot for a uniform distribution",
          plotline = 0, xlab = "Expected p-value", 
          ylab = "Observed p-value", colvec=rep("black",length(x)),
	  colline = "black", ...)

Arguments

x

The data vector

logplot

If logplot is set to true, then the log10 of the p-values will be used in the plot. If not, untransformed p-values will be used.

lbs

A vector of labels for the points in the Q-Q plot

texton

Logical indicating whether labels should be plotted or not

xylim

Shared upper limit x and y axis in the plot

main

Title for the plot

plotline

Setting plotline=0 plots a (0,1) line; plotline=1 plots a robust fit,

xlab

label for the x axis

ylab

label for the y axis

colvec

vector with colours for the points in the QQ plot

colline

colour for the line in the plot

...

Any additional arguments for the plot instruction

Value

pvals

observed probabilities

epvals

expected probabilities

Author(s)

Jan Graffelman (jan.graffelman@upc.edu)

See Also

qqnorm

Examples

   x <- runif(1000)
   z <- qqunif(x)

HardyWeinberg documentation built on May 29, 2024, 6:17 a.m.