parallelAnd: Andrews type parallel coordinate plot

View source: R/parallelAnd.R

parallelAndR Documentation

Andrews type parallel coordinate plot

Description

Make an Andrews type parallel coordinate plot

Usage

parallelAnd(K, center = T, scale = T, ylim, tcex = 1, ...)

Arguments

K

The data set.

center

Make the data centered if center = TRUE

scale

Do scaling the data set if scale = TRUE

ylim

usuall ylim of the plot function. The limit of y axis.

tcex

The colname size. They will be texted at the plot.

...

other options that can be used in plot function.

Value

An Andrews type parallel coordinate plot of the data set.

See Also

plotAnd

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.