mrct.plot {mrct} | R Documentation |
Plot function for result from mrct()
Description
A function for descriptive plots for an object resulting from a call to mrct()
.
Usage
mrct.plot(mrct.object)
Arguments
mrct.object |
A result from a call to |
Value
Descriptive plots
aMHD.plot |
Alpha-Mahalanobis distances, corresponding cutoff values and coloring according to estimated outliers (grey regular, black irregular). |
aMHD.plot.w |
Same as |
Examples
# Similar to example in mrct() helpfile
# Fix seed for reproducibility
set.seed(123)
# Sample outlying indices
cont.ind <- sample(1:50, size=10)
# Generate 50 curves on the interval [0,1] at 50 timepoints with 20% outliers
y <- mrct.rgauss(x.grid=seq(0,1,length.out=50), N=50, model=1,
outliers=cont.ind, method="linear")
# Visualize curves (regular curves grey, outliers black)
colormap <- rep("grey",50); colormap[cont.ind] <- "black"
matplot(x=seq(0,1,length.out=50), y=t(y), type="l", lty="solid",
col=colormap, xlab="t",ylab="")
# Run MRCT
mrct.y <- mrct(data=y, h=0.75, alpha=0.1,
initializations=10, criterion="sum")
# Visualize alpha-Mahalanobis distance
# Colorinfromation according to estimated outliers (grey regular, black irregular)
mrct.plot(mrct.y)
[Package mrct version 0.0.1.0 Index]