correlation between shape space and tangent space
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)
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. |
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 |
Stefan Schlager
if (require(shapes)) { regdist(gorf.dat) }
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.