Learn R Programming

distrMod (version 2.9.4)

internals_for_qqplot: Internal functions for qqplot of package distrMod

Description

These functions are used internally by qqplot of package distrMod.

Usage

.labelprep(x,y,lab.pts,col.lbs,cex.lbs,adj.lbs,which.lbs,
           which.Order,order.traf, which.nonlbs)

Value

.labelprep

a list with components x0 (the thinned out and ordered vector x), y0 (the thinned out and ordered vector y), lab (the thinned out and ordered vector of labels lab.pts), col (the thinned out and ordered vector of colors col.lbs), cex (the thinned out and ordered vector of magnification factors cex.lbs), ord (the (ordered according to y) indices of the observations selected for labelling), ns (the (ordered) indices of the selected non-labelled observations).

Arguments

x

a (numeric) vector

y

a (numeric) vector of same length as x

cex.lbs

magnification factor for the plotted observation labels

col.lbs

color for the plotted observation labels

adj.lbs

adjustment factor for the plotted observation labels

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)).

which.nonlbs

indices of the observations which should be plotted but not labelled; either an integer vector with the indices of the observations to be plotted into graph or NULL --- then all non-labelled observations are plotted.

Author

Peter Ruckdeschel peter.ruckdeschel@uni-oldenburg.de,

Details

.labelprep prepares the labels for later output: first some indices among x according to which.lbs are (optionally) selected, then orders both x and y according to the order of the remaining (optionally transformed by order.traf) values of x (decreasing); finally only the order statistics (w.r.t. the preceding ordering) as specified in which.Order are returned; correspondingly, labels, colors, and magnification factors, are ordered respectively thinned out.

See Also

ks.test, qqplot ,internals_qqplot , qqplot, qqplot