QQplot {QRMlib}R Documentation

Generic Quantile-Quantile Plot

Description

constructs a quantile-quantile plot against a given reference distribution

Usage

QQplot(data, position=0.5, reference="normal", ...)

Arguments

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

Details

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.

Value

NULL returned

Side Effects

QQ-plot is created on graphical device

See Also

qqnorm, dghyp

Examples

QQplot(rnorm(1000),ref="normal"); 
QQplot(rexp(1000),ref="exp"); 

[Package QRMlib version 1.4 Index]