performs a partial Procrustes superimposition of landmark data and calculates the correlation between tangent and shape space.
regdist(
dataarray,
plot = TRUE,
main = "",
rho = "angle",
dist.mat.out = FALSE,
...
)
correlation coefficient between distances in shape space and tangent space
Procrustes Sums of Squares (of full procrustes distance)
Tangent Sums of Squares
Procrustes Sums of Squares (of angle)
distance matrix of euclidean distance in Tangent space
distance matrix of Procrustes distance in Shape space
linear model regressing tangent space distances onto Procrustes distances
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.
Logical: whether to plot the distances between observations.
character string: Title of the plot.
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.
Logical: If TRUE, output will contain distance matrices.
additional parameters passed to procSym
Stefan Schlager
regdist
if (require(shapes)) {
regdist(gorf.dat)
}
Run the code above in your browser using DataLab