pclen: Profile smoothness measures

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/colpairs.R

Description

Computes measures of profile smoothness of 2-d data, where x and y give the object coordinates.

Usage

1
2
pclen(x, y)
pcglen(x, y)

Arguments

x

is a numeric vector.

y

is a numeric vector.

Details

pclen computes the total line length in a parallel coordinate plot of x and y.

pcglen computes the average (per object) line length in a parallel coordinate plot where all pairs of objects are connected.

Usually, the data is standardized prior to using these functions.

Value

The panel measure is returned.

Author(s)

Catherine B. Hurley

References

Hurley, Catherine B. “Clustering Visualisations of Multidimensional Data”, Journal of Computational and Graphical Statistics, vol. 13, (4), pp 788-806, 2004.

See Also

cparcoord, colpairs, order.endlink.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
x <- runif(20)
y <- runif(20)
pclen(x,y)


data(state)
mins <- apply(state.x77,2,min)
ranges <- apply(state.x77,2,max) - mins
state.m <- -colpairs(scale(state.x77,mins,ranges), pclen)
state.col <- dmat.color(state.m)
cparcoord(state.x77, panel.color= state.col)
# Get rid of the panels with long line segments (yellow) by reordering:
cparcoord(state.x77, order.endlink(state.m), state.col)

gclus documentation built on May 2, 2019, 5:08 a.m.