Learn R Programming

gap (version 1.0-14)

qqunif: Q-Q plot for uniformly distributed random variable

Description

This function produces Q-Q plot for a random variable following uniform distribution using log-scale.

Usage

qqunif(u,logscale=TRUE,base=10,...)

Arguments

u
a vector of uniformly distributed random variables
logscale
to use logscale
base
the base of the log function
...
other options as appropriae for the qqplot function

Value

  • The returned value is a list with components of a qqplot:
  • x-log(expected value for uniform order statistics)
  • y-log(observed value)

References

Davison AC. Statistical Models. Cambridge University Press 2003.

See Also

qqpval

Examples

Run this code
p <- runif(100)
r <- qqunif(p)

Run the code above in your browser using DataLab