QQplot {QRMlib} | R Documentation |
constructs a quantile-quantile plot against a given reference distribution
QQplot(data, position=0.5, reference="normal", ...)
data |
vector of data |
position |
determines the plotting positions (see ppoints in R-help) |
reference |
name of reference distribution (normal, exp, student, etc.) |
... |
any further parameters required by quantile function of reference distribution |
Special forms like ParetoQQ plots can also be created via this function. E.g., to create a ParetoQQ plot, merely pass log(data) in place of data as the first parameter and use reference="exp" as the reference distribution. The ParetoQQ plot should provide a linear graph when a log transform of the data is plotted against the exponential distribution. See Beirlant et al, "Statistics of Extremes", Chapter 1.2.1 for descriptions of various QQ plots.
NULL returned
QQ-plot is created on graphical device
QQplot(rnorm(1000),ref="normal"); QQplot(rexp(1000),ref="exp");