rePCA | R Documentation |
Basically reapply rotation to a new Coe object.
rePCA(PCA, Coe)
PCA |
a PCA object |
Coe |
a Coe object |
Quite experimental. Dimensions of the matrices and methods must match.
b <- filter(bot, type=="beer")
w <- filter(bot, type=="whisky")
bf <- efourier(b, 8)
bp <- PCA(bf)
wf <- efourier(w, 8)
# and we use the "beer" PCA on the whisky coefficients
wp <- rePCA(bp, wf)
plot(wp)
plot(bp, eig=FALSE)
points(wp$x[, 1:2], col="red", pch=4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.