Learn R Programming

Morpho (version 2.1)

regdist: 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 bet
dist.mat.out
Logical: If TRUE, output will contain distance matrices.

Value

  • corcorrelation coefficient between distances in shape space and tangent space
  • procSSProcrustes Sums of Squares (of full procrustes distance)
  • tanSSTangent Sums of Squares
  • rhoSSProcrustes Sums of Squares (of angle)
  • euc.distdistance matrix of euclidean distance in Tangent space
  • proc.distdistance matrix of Procrustes distance in Shape space

See Also

regdist

Examples

Run this code
library(shapes)
regdist(gorf.dat)

Run the code above in your browser using DataLab