Learn R Programming

distrMod (version 2.3.1)

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.lbl,cex.lbl,which.lbs,which.Order,order.traf)

Arguments

x
a (numeric) vector
y
a (numeric) vector of same length as x
cex.lbl
magnification factor for the plotted observation labels
col.lbl
color 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)).

Value

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

concept

utilities

Details

.labelprep prepares the labels for later output: first we (optionally) select some indices among x according to which.lbs, 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