mdrplot {fsdaR} | R Documentation |
Plots the trajectory of minimum deletion residual (mdr)
Description
Plots the trajectory of minimum deletion residual (mdr).
Usage
mdrplot(out, quant = c(0.01, 0.5, 0.99), sign = TRUE,
mplus1 = FALSE, envm,
xlim, ylim, xlab, ylab, main,
lwdenv, lwd, cex.lab, cex.axis,
tag, datatooltip, label, nameX, namey, databrush,
...)
Arguments
out |
An object returned by FSReda() (see The needed elements of
|
quant |
Quantiles for which envelopes have to be computed. The default is to
produce 1%, 50% and 99% envelopes. In other words the default
is |
sign |
Wheather to use MDR with sign: if |
mplus1 |
Wheather to plot the (m+1)-th order statistic. Specifies if it is necessary to plot the curve associated with (m+1)-th order statistic. |
envm |
Sample size for drawing enevlopes. Specifies the size of the sample which is used to superimpose the envelope. The default is to add an envelope based on all the observations (size n envelope). |
ylim |
Control |
xlim |
Control |
xlab |
a title for the x axis |
ylab |
a title for the y axis |
main |
an overall title for the plot |
lwdenv |
Controls the width of the lines associated with the envelopes, default is |
lwd |
Controls the linewidth of the curve which contains the monitoring of minimum deletion residual. |
cex.lab |
The magnification to be used for x and y labels relative to the current setting of cex |
cex.axis |
The magnification to be used for axis annotation relative to the current setting of cex |
tag |
Plot handle. String which identifies the handle of the plot which is about to be created. The default is to use tag 'pl_mdr'. Notice that if the program finds a plot which has a tag equal to the one specified by the user, then the output of the new plot overwrites the existing one in the same window else a new window is created. |
datatooltip |
If datatooltip is not empty the user can use the mouse in order to have
information about the unit selected, the step in which the unit enters the search and
the associated label. If datatooltip is a list, it is possible to control the aspect
of the data cursor (see MATLAB function |
label |
Character vector containing the labels of the units (optional argument used when
|
nameX |
Add variable labels in plot. A vector of strings of length |
namey |
Add response label. A string containing the label of the response |
databrush |
interactive mouse brushing. If databrush is missing or empty (default), no brushing is done. The activation of this option (databrush is a scalar or a list) enables the user to select a set of trajectories in the current plot and to see them highlighted in the y|X plot, i.e. a matrix of scatter plots of y against each column of X, grouped according to the selection(s) done by brushing. If the plot y|X does not exist it is automatically created. In addition, brushed units are automatically highlighted in the minimum deletion residual plot if it is already open. The extension to the following plots will be available in future versions of the toolbox:
Note that the window style of the other figures is set equal to that which contains the monitoring residual plot. In other words, if the monitoring residual plot is docked all the other figures will be docked too If If
|
... |
potential further arguments passed to lower level functions. |
Details
No details
Value
No value returned
Author(s)
FSDA team
Examples
## Not run:
n <- 100
y <- rnorm(n)
X <- matrix(rnorm(n*4), nrow=n)
out <- fsreg(y~X, method="LTS")
out <- fsreg(y~X, method="FS", bsb=out$bs, monitoring=TRUE)
mdrplot(out)
## End(Not run)