Learn R Programming

FastPCS (version 0.1.4)

plot.FastPCS: Distance plot for FastPCS

Description

Plots the robust distance values from a FastPCS model fit, and their parametric cut-off.

Usage

# S3 method for FastPCS
plot(x,col="black",pch=16,...)

Arguments

x

For the plot() method, a FastPCS object, typically resulting as output from FastPCS.

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.

Author

Kaveh Vakili, Eric Schmitt

See Also

FastPCS

Examples

Run this code
## 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)

Run the code above in your browser using DataLab