plot.FastPCS {FastPCS} | R Documentation |
Plots the robust distance values from a FastPCS model fit, and their parametric cut-off.
## S3 method for class 'FastPCS' plot(x,col="black",pch=16,...)
x |
For the |
col |
A specification for the default plotting color. Vectors of values are recycled. |
pch |
Either an integer specifying a symbol, or a single character to be used as the default in plotting points. Note that only integers and single-character strings can be set as graphics parameters. Vectors of values are recycled. |
... |
Further arguments passed to the plot function. |
Kaveh Vakili, Eric Schmitt
## generate data set.seed(123) n<-100 p<-3 x0<-matrix(rnorm(n*p),nc=p) x0[1:30,]<-matrix(rnorm(30*p,4.5,1/100),nc=p) z<-c(rep(0,30),rep(1,70)) nstart<-FPCSnumStarts(p=p,eps=0.4) results<-FastPCS(x=x0,nSamp=nstart) colvec<-rep("orange",length(z)) colvec[z==1]<-"blue" plot.FastPCS(results,col=colvec,pch=16)