APCP: Plot Andrews type parallel coordinate plot

View source: R/APCP.R

APCPR Documentation

Plot Andrews type parallel coordinate plot

Description

Plot Andrews type parallel coordinate plot. It considers categorical variables as well.

Usage

APCP(Xrr, center = T, scale = T, tcex = 1, ylim, ...)

Arguments

Xrr

The list object from Reorder function.

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 plotting options

Value

Andrews type parallel coordinate plot

See Also

plotAnd, parallelAnd

Examples

library(MASS)
data(Cars93)
X<-Cars93[,c(3,5,7,10,25,26)]  # Type, Price, MPG.city, Drivertrain, Weight, Origin
XX<-nAlg(X)
colo<-c("red","blue","green","000022","yellow","brown")[unclass(X[,6])]
Xrr <- Reorder(XX, jitter=T, amount=.1)
APCP(Xrr,col=colo, ylim=c(-3,5),xlab="t",ylab="f(t)", main="Cars93 : Shortest Path, PCP version of Andrews' plot" )

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