# qqplot

From distrMod v2.2.2
by Peter Ruckdeschel

##### Methods for Function qqplot in Package `distrMod'

We generalize function `qqplot`

from package `qqplot`

produces a QQ plot of data (argument `x`

) against
a (model) distribution.
Graphical parameters may be given as arguments to `qqplot`

.

- Keywords
- hplot, distribution

##### Usage

```
qqplot(x, y, ...)
## S3 method for class 'ANY,UnivariateDistribution':
qqplot(x,y,
n = length(x), withIdLine = TRUE,
withConf = TRUE, withConf.pw = withConf, withConf.sim = withConf,
plot.it = TRUE, xlab = deparse(substitute(x)),ylab = deparse(substitute(y)),
..., width = 10, height = 5.5, withSweave = getdistrOption("withSweave"),
mfColRow = TRUE, n.CI = n, withLab = FALSE, lab.pts = NULL, which.lbs = NULL,
which.Order = NULL, order.traf = NULL,
col.IdL = "red", lty.IdL = 2, lwd.IdL = 2, alpha.CI = .95,
exact.pCI = (n
```

##### Arguments

- x
- data to be checked for compatibility with distribution/model
`y`

. - y
- object of class
`"UnivariateDistribution"`

or of class`"ProbFamily"`

. - n
- numeric; assumed sample size (by default length of
`x`

). - withIdLine
- logical; shall line
`y = x`

be plotted in? - withConf
- logical; shall confidence lines be plotted?
- withConf.pw
- logical; shall pointwise confidence lines be plotted?
- withConf.sim
- logical; shall simultaneous confidence lines be plotted?
- plot.it
- logical; shall be plotted at all (inherited from
`qqplot`

)? - xlab
- x-label
- ylab
- y-label
- ...
- further parameters for method
`qqplot`

with signature`ANY,UnivariateDistribution`

or with function`plot`

- width
- width (in inches) of the graphics device opened
- height
- height (in inches) of the graphics device opened
- withSweave
- logical: if
`TRUE`

(for working withSweave) no extra device is opened and height/width are not set - mfColRow
- shall default partition in panels be used --- defaults to
`TRUE`

- n.CI
- numeric; number of points to be used for confidence interval
- withLab
- logical; shall observation labels be plotted in?
- lab.pts
- character or
`NULL`

; observation labels to be used - which.lbs
- integer or
`NULL`

; which observations shall be labelled - which.Order
- integer or
`NULL`

; which of the ordered (remaining) observations shall be labelled - order.traf
- function or
`NULL`

; an optional trafo by which the observations are ordered (as order(trafo(obs)). - col.IdL
- color for the identity line
- lty.IdL
- line type for the identity line
- lwd.IdL
- line width for the identity line
- alpha.CI
- confidence level
- exact.pCI
- logical; shall pointwise CIs be determined with exact Binomial distribution?
- exact.sCI
- logical; shall simultaneous CIs be determined with exact Kolmogorov distribution?
- nosym.pCI
- logical; shall we use (shortest) asymmetric CIs?
- col.pCI
- color for the pointwise CI
- lty.pCI
- line type for the pointwise CI
- lwd.pCI
- line width for the pointwise CI
- pch.pCI
- symbol for points (for discrete mass points) in pointwise CI
- cex.pCI
- magnification factor for points (for discrete mass points) in pointwise CI
- col.sCI
- color for the simultaneous CI
- lty.sCI
- line type for the simultaneous CI
- lwd.sCI
- line width for the simultaneous CI
- pch.sCI
- symbol for points (for discrete mass points) in simultaneous CI
- cex.sCI
- magnification factor for points (for discrete mass points) in simultaneous CI
- cex.pch
- magnification factor for the plotted symbols
- col.pch
- color for the plotted symbols
- cex.lbl
- magnification factor for the plotted observation labels
- col.lbl
- color for the plotted observation labels
- adj.lbl
- adj parameter for the plotted observation labels
- jit.fac
- jittering factor used for discrete distributions
- check.NotInSupport
- logical; shall we check if all
`x`

-quantiles lie in`support(y)`

? - col.NotInSupport
- logical; if preceding check
`TRUE`

color of`x`

-quantiles if not in`support(y)`

- with.legend
- logical; shall a legend be plotted?
- legend.bg
- background color for the legend
- legend.pos
- position for the legend
- legend.cex
- magnification factor for the legend

##### Details

[object Object],[object Object]

##### Value

##### References

Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988)
*The New S Language*.
Wadsworth & Brooks/Cole.

##### See Also

`qqplot`

from package `qqplot`

from package `qqbounds`

, used by `qqplot`

to produce confidence
intervals.

##### Examples

```
qqplot(r(Norm(15,sqrt(30)))(40), Chisq(df=15))
qqplot(r(Norm(15,sqrt(30)))(40), NormLocationFamily())
```

*Documentation reproduced from package distrMod, version 2.2.2, License: LGPL-3*

### Community examples

Looks like there are no examples yet.