qqunif {randRotation} | R 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))

[Package randRotation version 1.6.0 Index]