| parallelAnd | R Documentation |
Make an Andrews type parallel coordinate plot
parallelAnd(K, center = T, scale = T, ylim, tcex = 1, ...)
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. |
An Andrews type parallel coordinate plot of the data set.
plotAnd
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.