This function produces Q-Q plot for a random variable following uniform distribution with or without using log-scale. Note that the log-scale is by default for type "exp", which is a plot based on exponential order statistics. This appears to be more appropriate than the commonly used procedure whereby the expected value of uniform order statistics is directly log-transformed.
qqunif(
u,
type = "unif",
logscale = TRUE,
base = 10,
col = palette()[4],
lcol = palette()[2],
ci = FALSE,
alpha = 0.05,
...
)
The returned value is a list with components of a qqplot:
expected value for uniform order statistics or its -log(,base) counterpart
observed value or its -log(,base) counterpart
a vector of uniformly distributed random variables.
string option to specify distribution: "unif"=uniform, "exp"=exponential.
to use logscale.
the base of the log function.
color for points.
color for the diagonal line.
logical option to show confidence interval.
1-confidence level, e.g., 0.05.
other options as appropriae for the qqplot function.
Jing Hua Zhao
Balakrishnan N, Nevzorov VB. A Primer on Statistical Distributions. Wiley 2003.
Casella G, Berger RL. Statistical Inference, Second Edition. Duxbury 2002.
Davison AC. Statistical Models. Cambridge University Press 2003.
qqfun