View source: R/restoreShapes.r

getPCscores | R Documentation |

Obtain PC-scores for new landmark data

```
getPCscores(x, PC, mshape)
```

`x` |
landmarks aligned (e.g. using |

`PC` |
Principal components (eigenvectors of the covariance matrix) |

`mshape` |
matrix containing the meanshape's landmarks (used to center the data) |

returns a matrix containing the PC scores

`restoreShapes`

```
## Not run:
data(boneData)
proc <- procSym(boneLM[,,-c(1:2)])
newdata <- boneLM[,,c(1:2)]
newdataAlign <- align2procSym(proc,newdata)
scores <- getPCscores(newdataAlign,proc$PCs,proc$mshape)
## End(Not run)
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.