shapes.cva | R Documentation |
Carry out canonical variate analysis for shapes (in two or more groups)
shapes.cva(X,groups,scale=TRUE,tangentcoords = "residual",ncv=2)
X |
Input k x m x n real array of the configurations, where k is the number of points, m is the number of dimensions, and n is the sample size. |
groups |
The group labels |
scale |
Logical, indicating if Procrustes scaling should be carried out |
tangentcoords |
The type of Procrustes tangent coordinates to use (as for procGPA) |
ncv |
Number of canonical variates to display |
A plot if ncv=2 or 3 and the Canonical Variate Scores
Ian Dryden
Dryden, I.L. and Mardia, K.V. (2016). Statistical Shape Analysis, with Applications in R (Second Edition). Wiley, Chichester.
procGPA
#2D example : female and male apes (cf. Dryden and Mardia, 2016) data(pongof.dat) data(pongom.dat) data(panm.dat) data(panf.dat) apes <- groupstack( pongof.dat , pongom.dat , panm.dat, panf.dat ) shapes.cva( apes$x, apes$groups)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.