# NOT RUN {
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
## (you can do this much more convenient using \code{\link{plsCoVarCommonShape}}
scores <- c(-2,2) * sd(c(commShape$XscoresScaled[,1],commShape$XscoresScaled[,2]))
pred <- showPC(scores,commShape$shapevectors[,1],matrix(commShape$commoncenter,10,3))
# }
# NOT RUN {
deformGrid3d(pred[,,1],pred[,,2])
# }
Run the code above in your browser using DataLab