qqlog: Creates a Q-Q plot from pre-computed -log10(p-values)

View source: R/qq.R

qqlogR Documentation

Creates a Q-Q plot from pre-computed -log10(p-values)

Description

Accepts -\log_{10}(p) values directly as input. This is useful when the caller has already transformed their p-values, or when higher numerical precision is required before passing values to the plotting layer. Produces the same style of plot and uses the same fast pruning algorithm as qq.

Usage

qqlog(log10_pvector, ...)

Arguments

log10_pvector

A numeric vector of -\log_{10}(p) values. Values must be positive and finite; non-positive, infinite, NA, and NaN values are excluded (consistent with qq excluding p-values \geq 1 or \leq 0).

...

Other arguments passed to plot()

Value

No return value, called for plotting side effects.

Examples

pvec <- stats::runif(1e5)
qqlog(-log10(pvec))

fastqq documentation built on March 13, 2026, 9:08 a.m.