Learn R Programming

DescTools (version 0.99.7)

PlotQQ: QQ-Plot for Optional Distributions

Description

Create a QQ-plot for a variable which is not normally distributed. The assumed underlying distribution can freely be defined.

Usage

PlotQQ(x, qdist, ..., main = NULL, xlab = NULL, ylab = NULL)

Arguments

x
the data sample
qdist
the quantile function of the assumed distribution as text or as function.
...
optional arguments to be passed to the quantile function
main
the main title for the plot. This will be "Q-Q-Plot" by default
xlab
the xlab for the plot
ylab
the ylab for the plot

Details

The function generates a sequence of points between 0 and 1 and transforms those into quantiles by means of the defined assumed distribution.

References

Teetor, P. (2011) R Cookbook. O'Reilly, pp. 254-255.

See Also

qqnorm, qqline, qqplot

Examples

Run this code
y <- rexp(100, 1/10)
PlotQQ(y, qexp, rate=1/10)

Run the code above in your browser using DataLab