Procrustes Transformation. Description This function performs a Procrustes transformation on a matrix X to minimize the squared distance between X and another matrix Xstar .
Usage. R: Procrustes Rotation of Two Configurations and PROTEST. Description Function procrustes rotates a configuration to maximum similarity with another configuration.
Function protest tests the non-randomness (`significance') between two configurations. Usage procrustes(X, Y, scale = TRUE, symmetric = FALSE, scores = "sites", ...) ## S3 method for class 'procrustes': summary(object, digits = getOption("digits"), ...) ## S3 method for class 'procrustes': plot(x, kind=1, choices=c(1,2), xlab, ylab, main, ar.col = "blue", len=0.05, ...) ## S3 method for class 'procrustes': points(x, display = c("target", "rotated"), ...) ## S3 method for class 'procrustes': text(x, display = c("target", "rotated"), labels, ...) ## S3 method for class 'procrustes': lines(x, type = c("segments", "arrows"), choices = c(1, 2), ...) ## S3 method for class 'procrustes': residuals(object, ...) ## S3 method for class 'procrustes': fitted(object, truemean = TRUE, ...) protest(X, Y, scores = "sites", permutations = 999, strata, ...)
Arguments Details Value Note Author(s) Jari Oksanen. R: Ordinary Procrustes analysis. ProcOPA {shapes} R Documentation Description Ordinary Procustes analysis : the matching of one configuration to another using translation, rotation and (possibly) scale. Reflections can also be included if desired. The function matches configuration B onto A by least squares.
Usage procOPA(A, B, scale = TRUE, reflect = FALSE) Arguments k x m matrix (or complex k-vector for 2D data), of k landmarks in m dimensions. K x m matrix (or complex k-vector for 2D data). Scale logical indicating if scaling is required reflect logical indicating if reflection is allowed Value A list with components: The estimated rotation matrix (may be an orthogonal matrix if reflection is allowed) s The estimated scale matrix Ahat The centred configuration A Bhat The Procrustes registered configuration B The ordinary Procrustes sum of squares, which is $|Ahat-Bhat|^2$ Author(s) Ian Dryden References Dryden, I.L. and Mardia, K.V. (1998). See Also procGPA,riemdist,tpsgrid Examples data(digit3.dat) A.