plotParallel: Plots data in parallel coordinates

Description Usage Arguments Author(s) References See Also Examples

Description

Plots data in parallel coordinates for displaying multidimensional data.

Usage

1
2
3
## Default S3 method:
plotParallel(object, order=NULL, flip=NULL, horizontal=TRUE, col=par("col"), lty=NULL,
  lwd=NULL, ylab="", xlab="", las=2, dim.col="gray", ylim=NULL, ...)

Arguments

object

Object containing the data. Accepted data types are data frames, matrices and list, which are all converted internally by as.data.frame(object).

order

A vector specifying the order in which the dimensions should be plotted. Some dimensions can be excluded. If NULL, all dimensions are plotting in the order they appear in object.

flip

Vector specifying if a dimension should be flipped (inversed) or not. If NULL, no dimensions are flipped.

horizontal

If TRUE the dimensions are plotted along the x-axis, otherwise they are plotted along the y-axis.

col

Vector specifying the line color for each data point.

lty

Vector specifying the line types for each data point.

lwd

Vector specifying the line width for each data point.

xlab, ylab

The labels on the x and the y axis.

las

The rotation of the dimension labels. Default value is 2, which means "always perpendicular to the axis". For more information see par.

dim.col

The colors of the dimension lines.

ylim

A vector of two numbers or a matrix with two rows. The first and the second row corresponds to the lower and the upper cutoff levels, respectively. If a value is NA, it means that the data decides the cutoff level (in that direction).

...

Other parameters accepted by plot.

Author(s)

Henrik Bengtsson

References

Wegman, E., (1990). Hyperdimensional Data Analysis Using Parallel Coordinates. Journal of American Statistics Association, 85, 664-675.

See Also

To plot data in three dimensions see plot3d().

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(freeny)
plotParallel(freeny, order=2:5, flip=c(FALSE,TRUE,FALSE,FALSE))

data(airquality)
r <- range(airquality$Temp, na.rm=TRUE)
tempidx <- floor(99*(airquality$Temp-r[1])/(r[2]-r[1]))+1
col <- heat.colors(100)[tempidx]
r <- range(airquality$Wind, na.rm=TRUE)
windidx <- (airquality$Wind-r[1])/(r[2]-r[1])
lwd <- 2*windidx+1
plotParallel(airquality, order=1:4, col=col, lwd=lwd, horizontal=FALSE)

HenrikBengtsson/R.basic documentation built on May 6, 2019, 11:51 p.m.