regdist | R Documentation |
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. |
... |
additional parameters passed to |
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 |
lm |
linear model regressing tangent space distances onto Procrustes distances |
Stefan Schlager
regdist
if (require(shapes)) {
regdist(gorf.dat)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.