plotAnd: Andrews plot

View source: R/plotAnd.R

plotAndR Documentation

Andrews plot

Description

Make an Andrews plot

Usage

plotAnd(X, ...)

Arguments

X

The data set.

...

other options that can be used in plot function.

Value

An Andrews plot of the data set.

See Also

parallelAnd

Examples

# example APCP of three observations of 5 dimension.
X <- rbind( c(1,2,1,2,3),
           c(2,2,2,2,2),
           c(0,1,2,1,0) )
colnames(X) <- c("A","B","C","D","E")

# An Andrews plot of the data set X.
plotAnd(X, ylim=c(-5,7))

# An Andrws type parallel coordinate plot(APCP) of the data set X.
parallelAnd(X, center=F, scale=F, ylim=c(-1,5) )

# Andrews plot of iris data set.
data(iris)
coco <- c("red","blue","green")[unclass(iris[,5])]
plotAnd(iris[,1:4],ylim=c(-3,15),col=coco)

# APCP of iris data set.
parallelAnd(iris[,1:4],center=F,scale=F,ylim=c(-3,15),col=coco)

ikwak2/APCP documentation built on March 14, 2023, 7:14 p.m.