Last chance! 50% off unlimited learning
Sale ends in
qqmath(formula, distribution = qnorm, f.value = NULL, ...)
~ x | g1 * g2 * ...
,
where x
must be a numeric.qnorm,qunif
etc.
Distributions with other required arguments need to be passed in as
user definppoints
, which is also the S-PLUS defqqmath
produces a Q-Q plot of the given sample and a
theoretical distribution. The default behaviour of qqmath
is
different from the corresponding S-PLUS function, but is similar to
qqnorm
. See the entry for f.value
for specifics. This and all other high level Trellis functions have several
arguments in common. These are extensively documented only in the
help page for xyplot
, which should be consulted to learn more
detailed usage.
xyplot
, panel.qqmath
,
panel.qqmathline
, prepanel.qqmathline
,
Lattice
, quantile
qqmath(~ rnorm(100), distribution = function(p) qt(p, df = 10))
qqmath(~ height | voice.part, aspect = 1, data = singer,
prepanel = prepanel.qqmathline,
panel = function(x, y) {
panel.qqmathline(y, distribution = qnorm)
panel.qqmath(x, y)
})
Run the code above in your browser using DataLab