Plots the trajectories of the elements of the covariance (correlation) matrix monitored
covplot(
out,
xlim,
ylim,
xlab,
ylab,
main,
lwd,
lty,
col,
cex.lab,
cex.axis,
subsize,
fg.thresh,
fg.unit,
fg.labstep,
fg.lwd,
fg.lty,
fg.col,
fg.mark,
fg.cex,
standard,
fground,
tag,
datatooltip,
trace = FALSE,
...
)
none
An object of S3 class fsmeda.object
returned by
fsmult
with monitoring=TRUE
-
a list containing the monitoring of minimum Mahalanobis distance.
The needed elements of out
are
S2cov
: matrix containing the monitoring of the elements
of the covariance matrix in each step of the forward search:
Un
: matrix containing the order of entry of each unit
(necessary if datatooltip or databrush is selected).
X
: The data matrix.
Controls the x
scale in the plot. xlim
is a vector with two elements controlling
minimum and maximum on the x
-axis. Default is to use automatic scale.
Controls the y
scale in the plot. ylim
is a vector with two elements controlling
minimum and maximum on the y
-axis. Default is to use automatic scale.
A title for the x axis
A title for the y axis
An overall title for the plot
The line width, a positive number, defaulting to 1
The line type. Line types can either be specified as an integer (1=solid (default), 2=dashed, 3=dotted, 4=dotdash, 5=longdash, 6=twodash) or as one of the character strings "solid", "dashed", "dotted", "dotdash", "longdash", or "twodash". The latter two are not supported by Matlab.
Colors to be used for the highlighted units
The magnification to be used for x and y labels relative to the current setting of cex
The magnification to be used for axis annotation relative to the current setting of cex
Numeric vector containing the subset size with length equal to the number of columns of
matrix of mahalanobis distances. The default value of subsize is (nrow(MAL) - ncol(MAL) + 1):nrow(MAL)
(alternative to fg.unit) numeric vector of length 1 or 2 which specifies
the highlighted trajectories.
If length(fg.thresh) == 1
the highlighted trajectories are those of units that throughtout
the search had at leat once a mahalanobis distance greater than fg.thresh
.
The default value is fg.thresh=2.5
. If length(fg.thresh) == 2
the highlighted
trajectories are those of units that throughtout the search had a mahalanobis distance at
least once bigger than fg.thresh[2]
or smaller than fg.thresh[1]
.
(alternative to fg.thresh), vector containing the list of the units to be highlighted.
If fg.unit
is supplied, fg.thresh
is ignored.
numeric vector which specifies the steps of the search where to put labels for
the highlighted trajectories (units). The default is to put the labels at the
initial and final steps of the search. fg.labstep=''
means no label.
The line width for the highlighted trajectories (units). Default is 1.
The line type for the highlighted trajectories (units). Line types can either be specified as an integer (1=solid (default), 2=dashed, 3=dotted, 4=dotdash, 5=longdash, 6=twodash) or as one of the character strings "solid", "dashed", "dotted", "dotdash", "longdash", or "twodash". The latter two are not supported by Matlab.
colors to be used for the highlighted units.
Controlls whether to plot highlighted trajectories as symbols.
if fg.mark==TRUE
each line is plotted using a different
symbol else no marker is used (default).
Controls the font size of the labels of the trajectories in foreground. If
fg.cex=0
no labels will be shown - equivalent to fg.labstop=""
.
MATLAB-style arguments - appearance of the plot in terms of xlim, ylim, axes labels and their font size style, color of the lines, etc.
MATLAB-style arguments - for the trajectories in foregroud.
Plot handle. String which identifies the handle of the plot which is about to be created.
The default is tag='pl_mmd'
. 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.
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 datacursormode()
for more details or
see the examples below). The default options are DisplayStyle="Window"
and SnapToDataVertex="on"
.
Whether to print intermediate results. Default is trace=FALSE
.
potential further arguments passed to lower level functions.
FSDA team, valentin.todorov@chello.at
if (FALSE) {
X <- iris[,1:4]
out <- fsmult(X, monitoring=TRUE)
## Produce monitoring covariances plot with all the default options
covplot(out)
}
Run the code above in your browser using DataLab