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

Description Usage Arguments Details Value Examples

View source: R/randRot.R

Description

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

Usage

1
2
3
4
5
6
7
8
qqunif(
  ps,
  log = "xy",
  pch = 20,
  xlab = "theoretical quantiles",
  ylab = "sample quantiles",
  ...
)

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.

...

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

1
qqunif(runif(100))

Example output



randRotation documentation built on April 14, 2021, 6:01 p.m.