regdist: correlation between shape space and tangent space

regdistR Documentation

correlation between shape space and tangent space

Description

performs a partial Procrustes superimposition of landmark data and calculates the correlation between tangent and shape space.

Usage

regdist(dataarray, plot = TRUE, main = "", rho = "angle", dist.mat.out = FALSE)

Arguments

dataarray

Input k x m x n real array, where k is the number of points, m is the number of dimensions, and n is the sample size.

plot

Logical: whether to plot the distances between observations.

main

character string: Title of the plot.

rho

chose how to calculate distances in shape space. Options: "riemdist"=Riemannian distance (function from the shapes package-takes along time to calculate), "angle"=calculates the angle between shape vectors, "sindist"=sinus of length of residual vector between shape vectors.

dist.mat.out

Logical: If TRUE, output will contain distance matrices.

Value

cor

correlation coefficient between distances in shape space and tangent space

procSS

Procrustes Sums of Squares (of full procrustes distance)

tanSS

Tangent Sums of Squares

rhoSS

Procrustes Sums of Squares (of angle)

euc.dist

distance matrix of euclidean distance in Tangent space

proc.dist

distance matrix of Procrustes distance in Shape space

Author(s)

Stefan Schlager

See Also

regdist

Examples


if (require(shapes)) {
regdist(gorf.dat)
}

Morpho documentation built on Feb. 16, 2023, 10:51 p.m.