qqunif: Quantile-Quantile plot of data sample against uniform...

View source: R/randRot.R

qqunifR Documentation

Quantile-Quantile plot of data sample against uniform theoretical quantiles

Description

qqunif produces a QQ plot of the values in ps against the theoretical quantiles of the uniform distribution.

Usage

qqunif(
  ps,
  log = "xy",
  pch = 20,
  xlab = "theoretical quantiles",
  ylab = "sample quantiles",
  plot.it = TRUE,
  ...
)

Arguments

ps

numeric vector of values (e.g. p-values). Values must be between 0 and 1. Values like NA, NaN, Inf etc. produce an error.

log

character indicating whether axis should be plotted in log scale. Either "", "x", "y" or "xy".

pch

Point symbol, see par.

xlab

Label for the x axis.

ylab

Label for the y axis.

plot.it

logical whether the result should be plotted.

...

Graphical parameters forwarded to qqplot

Details

This function can e.g. be used for comparing p-values against the uniform distribution. The log scale of the x and y axes allow a closer look at low p-values.

This function is a modified version of the examples in the qqnorm documentation page.

Value

A list of x and y coordinates, as in qqplot.

Examples

qqunif(runif(100))

phettegger/randRotation documentation built on April 10, 2023, 7:25 p.m.