convert PCs to landmark configuration
convert PC-scores to landmark coordinates
showPC(scores, PC, mshape)
scores |
vector of PC-scores, or matrix with rows containing PC-scores |
PC |
Principal components (eigenvectors of the covariance matrix) associated with 'scores'. |
mshape |
matrix containing the meanshape's landmarks (used to center the data by the PCA) |
Rotates and translates PC-scores derived from shape data back into configuration space.
returns matrix or array containing landmarks
Stefan Schlager
if (require(shapes)) { ## generate landmarks using ##the first PC-score of the first specimen proc <- procSym(gorf.dat) lm <- showPC(proc$PCscores[1,1],proc$PCs[,1],proc$mshape) plot(lm,asp=1) ##now the first 3 scores lm2 <- showPC(proc$PCscores[1,1:3],proc$PCs[,1:3],proc$mshape) points(lm2,col=2) }
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.