APCP | R Documentation |
Plot Andrews type parallel coordinate plot. It considers categorical variables as well.
APCP(Xrr, center = T, scale = T, tcex = 1, ylim, ...)
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 |
Andrews type parallel coordinate plot
plotAnd
, parallelAnd
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" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.