qqplot from package stats to
be applicable to distribution and probability model objects. In this context,
qqplot produces a QQ plot of data (argument x) against
a (model) distribution.
Graphical parameters may be given as arguments to qqplot.
qqplot(x, y, ...)
"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<100), exact.sci =" (n<100)," nosym.pci =" FALSE," col.pci =" "orange"," lty.pci =" 3," lwd.pci =" 2," pch.pci =" par("pch")," cex.pci =" par("cex")," col.sci =" "tomato2"," lty.sci =" 4," lwd.sci =" 2," pch.sci =" par("pch")," cex.sci =" par("cex")," cex.pch =" par("cex")," col.pch =" par("col")," cex.lbl =" par("cex")," col.lbl =" par("col")," adj.lbl =" NULL," alpha.trsp =" NA," jit.fac =" 0," check.notinsupport =" TRUE," col.notinsupport =" "red"," with.legend =" TRUE," legend.bg =" "white"," legend.pos =" "topleft"," legend.cex =" 0.8," legend.pref =" ""," legend.postf =" ""," legend.alpha =" alpha.CI)" "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))," ...)<="" div="">100),>y."UnivariateDistribution" or of
class "ProbFamily".x).y = x be plotted in?qqplot)?qqplot with signature
ANY,UnivariateDistribution or with function plotTRUE (for working with Sweave)
no extra device is opened and height/width are not setTRUENULL; observation labels to be usedNULL; which observations shall be labelledNULL; which of the ordered (remaining)
observations shall be labelledNULL; an optional trafo by which the
observations are ordered (as order(trafo(obs)).col.pch and col.lbl; if one-dim and NA all colors are
left unchanged. Otherwise, with usual recycling rules alpha.trsp
gets shorted/prolongated to length the data-symbols to be plotted.
Coordinates of this vector alpha.trsp with NA are left unchanged,
while for the remaining ones, the alpha channel in rgb space is set
to the respective coordinate value of alpha.trsp. The non-NA
entries must be integers in [0,255] (0 invisible, 255 opaque).x-quantiles lie
in support(y)?TRUE color of
x-quantiles if not in support(y)signature(x = "ANY", y = "UnivariateDistribution"):
produces a QQ plot of a dataset x against the theoretical
quantiles of distribution y.signature(x = "ANY", y = "ProbFamily"):
produces a QQ plot of a dataset x against the theoretical
quantiles of the model distribution of model y. Passed through
the ... argument, all arguments valid for
signature(x = "ANY", y = "UnivariateDistribution")
are also valid for this signature.qqplot from package stats -- the standard QQ plot
function, qqplot from package distr for
comparisons of distributions, and
qqbounds, used by qqplot to produce confidence
intervals.
qqplot(r(Norm(15,sqrt(30)))(40), Chisq(df=15))
qqplot(r(Norm(15,sqrt(30)))(40), NormLocationFamily())
Run the code above in your browser using DataLab