truss: Truss measurement

Description Usage Arguments Value Note See Also Examples

View source: R/core-premodern.R

Description

A method to calculate on shapes or on Coo truss measurements, which is all pairwise combinations of euclidean distances

Usage

1
truss(x)

Arguments

x

a shape or an Ldk object

Value

a named numeric or matrix

Note

Mainly implemented for historical/didactical reasons.

See Also

Other premodern: measure

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# example on a single shape
data(shapes)
cat <- coo_sample(shapes[4], 6)
truss(cat)

# example on wings dataset
data(wings)
tx <- truss(wings)
dim(tx)
# we normalize and plot an heatmap
txn <- apply(tx$coe, 2, .normalize)
# heatmap(txn)

txp <- PCA(tx, scale. = TRUE, center=TRUE, fac=wings$fac)
plot(txp, 1)

Momocs documentation built on Sept. 28, 2017, 9:04 a.m.