plot.FastPCS: Distance plot for FastPCS

Description Usage Arguments Author(s) See Also Examples

View source: R/FastPCS.R

Description

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

Usage

1
2
## S3 method for class '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(s)

Kaveh Vakili, Eric Schmitt

See Also

FastPCS

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## 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)

Example output

Loading required package: matrixStats

FastPCS documentation built on May 1, 2019, 9:21 p.m.