Learn R Programming

epade (version 0.2.2)

parallel.ade: Parallel coordinate plot

Description

Draw a parallel coordinate plot

Usage

parallel.ade(vars, vnames=NULL, data=NULL, group=NULL, ylim=NULL,
             xlab=NULL, ylab=NULL, main=NULL,
             alpha=NULL, col=NULL, tcol=NULL, bgcol=NULL, lcol=NULL,
             scale=FALSE, desc=FALSE, means=TRUE,
             legendon="top", wall=0)

Arguments

vars
  • a list of numeric variables
a vector of character strings with the names of variables in data.frame

item

  • vnames
  • data
  • group
  • a character string with the name of the group variable in the data.frame
  • ylim
  • xlab
  • ylab
  • main
  • alpha
  • col
  • tcol
  • bgcol
  • lcol
  • scale
  • desc
  • means
  • legendon
  • "bottom"
  • "bottomleft"
  • "left"
  • "topleft"
  • "top"
  • "topright"
  • "right"
  • "center"
  • wall

itemize

  • "bottomright"

See Also

parallel.set.ade

Examples

Run this code
x1<-rnorm(1000, 0, 5)
x2<-rnorm(1000, 0, 4)
x3<-rnorm(1000, 0, 3)
x4<-rnorm(1000, 0, 2)
parallel.ade(vars=list(x1, x2, x3, x4))
g<-rbinom(1000, 1, 0.5)
x1[g==1]<- x1[g==1]+8
x2[g==1]<- x2[g==1]-8
x3[g==1]<- x3[g==1]+6
x4[g==1]<- x4[g==1]-6
parallel.ade(vars=list(x1, x2, x3, x4), group=g,wall=3)

Run the code above in your browser using DataLab