Learn R Programming

Morpho (version 2.12)

plsCoVarCommonShape: Compute the shape changes along the common axis of deformations

Description

Compute the shape changes between two blocks of 2D or 3D shape coordiantes along the common axis of deformations defined by each dimension of the latent space

Usage

plsCoVarCommonShape(pls, i, sdcommon = 1)

Value

returns an k x m x 2 array with the common shape changes associated with +-sdcommon SD of the i-th latent dimension

Arguments

pls

object of class "pls2B"

i

integer: dimension of latent space to show shape changes for

sdcommon

standard deviations derived from scores scaled to a consensus scale

References

Mitteroecker P, Bookstein F. 2007. The conceptual and statistical relationship between modularity and morphological integration. Systematic Biology 56(5):818-836.

See Also

pls2B, getPLSfromScores, predictPLSfromScores, getPLSscores, predictPLSfromData,svd, plsCoVar, getPLSCommonShape

Examples

Run this code
data(boneData)
proc <- procSym(boneLM)
pls <- pls2B(proc$orpdata[1:4,,],proc$orpdata[5:10,,])
commShape <- getPLSCommonShape(pls)
## get common shape for first latent dimension at +-2 sd of the scores
pred <- plsCoVarCommonShape(pls,1,2)
if (FALSE) {
deformGrid3d(pred[,,1],pred[,,2])
}

Run the code above in your browser using DataLab