Learn R Programming

denpro (version 0.9.2)

paracoor: Makes a parallel coordinate plot

Description

Makes a parallel coordinate plot of a data matrix: the coordinates of the observations are plotted so that the coordinate axes are drawn parallel to each other and the coordinates of a single observation are joined with lines.

Usage

paracoor(X, Y=NULL, xmargin = 0.1, paletti = matrix("black",dim(X)[1],1), noadd = TRUE, verti = NULL, cex.axis = 1, points=TRUE, col.verti="black", col.verti.y="red", digits=3, arg=NULL, colarg="red", lwd=1, cex=1, yaxt="s")

Arguments

X
n*d data matrix of real numbers
Y
n*1 data matrix of real numbers; response variable
xmargin
positive real number; empty space in left and right
paletti
n vector of colors; the lines will be colored with these colors
noadd
TRUE or FALSE; if FALSE, then the lines will be added to an existing plot
verti
real number or NULL; gives the x coordinate of a vertical line; can be used to divide the plot vertically to two parts
cex.axis
the magnification to be used for axis annotation
points
TRUE or FALSE; whether points are plotted and not only lines
col.verti
a caharacter; the name of a color
col.verti.y
a caharacter; the name of a color
digits
a natural number; the number of digits in the annotation
arg
d*1 vector; the current value of the explanatory variable
colarg
a character; the name of a color
lwd
a positive real number; the width of the lines
cex
a positive real number; the largness of the circles
yaxt
a character which specifies the y axis type

Value

Makes a plot on the graphics window

References

Inselberg (1985), Wegman (1990)

Examples

Run this code
X<-sim.data(n=100,type="mulmod")
paracoor(X)

set.seed(1)
X<-matrix(rnorm(300),100,3)
paracoor(X)

set.seed(1)
X<-matrix(rnorm(400),100,4)
paracoor(X)

Run the code above in your browser using DataLab