Q-Q plot for uniformly distributed random variable
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:
x expected value for uniform order statistics or its -log(,base) counterpart.
y 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
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.
balakrishnan03gap
casella02gap
davison03gap
qqfun