Internal / Helper functions of package RobAStBase for ddPlot
This function is an internally used helper function for ddPlot
in package RobAStBase.
.ddPlot.MatNtNtCoCo(data, ..., dist.x = NormType(), dist.y = NormType(), cutoff.x = cutoff(norm = dist.x, cutoff.quantile = cutoff.quantile.x), cutoff.y = cutoff(norm = dist.y, cutoff.quantile = cutoff.quantile.y), cutoff.quantile.x = 0.95, cutoff.quantile.y = cutoff.quantile.x, transform.x,transform.y = transform.x, id.n, cex.pts = 1, lab.pts, jitter.pts = 0, alpha.trsp = NA, adj =0,cex.idn = 1,col.idn = par("col"), lty.cutoff,lwd.cutoff,col.cutoff = "red",text.abline = TRUE, text.abline.x = NULL, text.abline.y = NULL,cex.abline = par("cex"), col.abline = col.cutoff,font.abline = par("font"), adj.abline = c(0,0), text.abline.x.x = NULL, text.abline.x.y = NULL, text.abline.y.x = NULL, text.abline.y.y = NULL, text.abline.x.fmt.cx = "%7.2f", text.abline.x.fmt.qx = "%4.2f%%", text.abline.y.fmt.cy = "%7.2f", text.abline.y.fmt.qy = "%4.2f%%", jitter.fac = 10, jitter.tol = .Machine$double.eps, doplot = TRUE)
data |
data in |
... |
further arguments to be passed to |
dist.x |
object of class |
dist.y |
object of class |
cutoff.x |
object of class |
cutoff.y |
object of class |
cutoff.quantile.x |
numeric; the cutoff quantile for the |
cutoff.quantile.y |
numeric; the cutoff quantile for the |
transform.x |
function; a transformation to be performed before determining the
distances of the |
transform.y |
function; a transformation to be performed before determining the
distances of the |
id.n |
a set of indices (or a corresponding logical vector); to select a subset
of the data in argument |
cex.pts |
the corresponding |
lab.pts |
a vector of labels for the (unsubsetted) |
jitter.pts |
the corresponding |
alpha.trsp |
alpha transparency to be added ex post to colors
|
adj |
the corresponding argument for |
cex.idn |
the corresponding |
col.idn |
the corresponding |
lty.cutoff |
the corresponding |
lwd.cutoff |
(vector cast to length 2): the corresponding |
col.cutoff |
(vector cast to length 2): the corresponding |
text.abline |
vector of logicals (cast to length 2): shall text be added to cutoff lines. |
text.abline.x |
text to be added to cutoff lines in x direction; if |
text.abline.y |
text to be added to cutoff lines in y direction; if |
cex.abline |
vector of numerics (cast to length 2): cex-value for added cutoff text. |
col.abline |
vector of length 2: color for added cutoff text. |
font.abline |
vector of length 2: font for added cutoff text. |
adj.abline |
cast to 2 x 2 matrix (by recycling rules): adjustment values for added cutoff text. |
text.abline.x.y |
y-coordinate of text to be added to cutoff lines in x direction;
if |
text.abline.y.x |
x-coordinate of text to be added to cutoff lines in y direction;
if |
text.abline.x.x |
x-coordinate of text to be added to cutoff lines in x direction;
if |
text.abline.y.y |
y-coordinate of text to be added to cutoff lines in y direction;
if |
text.abline.x.fmt.cx |
format string (see |
text.abline.x.fmt.qx |
format string to format cutoff probability in label in x direction. |
text.abline.y.fmt.cy |
format string to format the cutoff value in label in y direction. |
text.abline.y.fmt.qy |
format string to format cutoff probability in label in y direction. |
jitter.fac |
factor for jittering, see |
jitter.tol |
threshold for jittering: if distance between points is smaller
than |
doplot |
logical; shall a plot be produced? if |
performs the plotting for ddPlot
and outlyingPlotIC
;
all arguments except for data
are optional. In case they are missing
default values are used as usual; for those arguments without default arguments,
we do
defaults to identity, internally
.
defaults to 1:ncol(data)
, internally
.
defaults to (1:ncol(data))[id.n]
, internally
.
defaults to argument lwd
, if given, else to par{lwd}
, internally
.
defaults to argument lty
, if given, else to par{lty}
, internally
.
a list (returned as invisible()
) with items
id.x |
the indices of (possibly transformed) data (within subset |
id.y |
the indices of (possibly transformed) data (within subset |
id.xy |
the indices of (possibly transformed) data (within subset |
qtx |
the quantiles of the distances of the (possibly transformed) data in |
qty |
the quantiles of the distances of the (possibly transformed) data in |
cutoff.x.v |
the cutoff value in |
cutoff.y.v |
the cutoff value in |
Peter Ruckdeschel peter.ruckdeschel@uni-oldenburg.de
MX <- matrix(rnorm(1500),nrow=6) QM <- matrix(rnorm(36),nrow=6); QM <- QM %*% t(QM) RobAStBase:::.ddPlot.MatNtNtCoCo(data=MX, dist.y=QFNorm(QuadF=PosSemDefSymmMatrix(QM)), xlab="Norm.x",ylab="Norm.y", cex.idn = 1.3, offset=0, lwd=2, lwd.cutoff=4, lty=2, col.cutoff =2, col.idn="green", col = "blue", adj=0.4, pos=4,id.n = sample(1:200,size=100), lab.pts=letters,log="x", main="GA", sub="NO",cex.sub=0.2)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.