Description Usage Arguments Details Author(s) See Also Examples
This is the default panel function for qqmathFitted
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | panel.qqmath.fitted(x,
f.value = NULL,
distribution = qnorm,
quantile.type = 7,
groups = NULL,
subscripts = NULL,
fitted.args = NULL,
qqstyle = NULL,
envelope = TRUE,
rdist = rnorm,
rdist.args = NULL,
sig.level = 0.95,
mc.samples = 100,
seed = .Random.seed,
envstyle = NULL,
add.qqline = c("none", "lm", "lmRob"),
add.qqline.par,
id.n = 3,
labelargs = FALSE,
verbose = FALSE, ...)
|
x |
vector of numeric data to be plotted in this panel |
f.value |
Vector of probabilities at which
to compute quantiles. By default, |
distribution |
function to compute quantiles from the reference
distribution. Can be a named function (e.g., |
quantile.type |
Numeric value, passed to |
groups |
Standard |
subscripts |
Standard |
fitted.args |
This is a list of fitted parameters for the
reference distribution. The user should not specify these directly.
Use the |
qqstyle |
List of graphical parameters to use for plotting the observed and reference quantiles. |
envelope |
If TRUE, plot a confidence region for the Q-Q plot via simulation. |
rdist |
The distribution from which to draw random numbers
for the confidence region simulation. It should correspond to
the distribution assumed in |
rdist.args |
A list containing additional arguments to the
function specified in |
sig.level |
Significance level to use for the confidence region. Default is a 95% condifence interval. |
mc.samples |
Number of random samples to use to construct the confidence region. |
seed |
Seed to use for the random number generator. If specified,
|
envstyle |
List of graphical parameters to use for plotting the confidence region boundaries. |
add.qqline |
Controls whether a fitted line should be added
to the plot. The default option, |
add.qqline.par |
Optional list of parameters controlling the appearance of the fitted line. |
id.n |
Number of outliers to label in each panel. Default is 3.
Use |
labelargs |
Controls whether the fitted distributional parameters
are added to each panel. Can be a logical value or a character value.
If FALSE, no labels are added. If TRUE, labels are taken from the
names of
The format of the labels is controlled by the lattice setting
|
verbose |
If TRUE, additional debugging information will be printed. |
... |
Further arguments, often graphical parameters,
passed to internal plotting functions and eventually on
to |
qqmathFitted
is a modified version of qqmath
from Deepayan Sarkar's lattice
package. It adds the ability to
fit the reference distribution to the data during the plotting procedure,
as well as the ability to simulation envelopes. The latter ability is
based on code appearing in the function lmfmResQQPlot
from the
robust
package maintained by Kjell Konis.
prepanel.qqmath.fitted
does the actual distributional fitting for
qqmathFitted
. The results of the fitting are stored in the frame
used by qqmathFitted
so that they do not need to be recomputed by
panel.qqmath.fitted
.
Christopher G. Green christopher.g.green@gmail.com for
panel.qqmath.fitted
. panel.qqmath.fitted
is a modified
version of panel.default.qqmath
from the lattice
package,
written by Deepayan Sarkar. The plotting code for simulation envelopes
is based on code appearing in the lmfmResQQPlot
function from
the robust
package written by Kjell Konis et al.
qqmathFitted
, prepanel.qqmath.fitted
,
qqmath
, panel.qqmath
1 | # see the examples for qqmathFitted
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.