PCAplot | R Documentation |
Plot the first three PCs and draw ellipses highlighting differences in the levels of a factor
PCAplot(by, tdat)
by |
factor to plot as ellipses on PCA plots |
tdat |
data matrix to compute principal components |
PCA plots for every combination of PC1, PC2, and PC3. The percentage of variation contribution is shown in the axes labels.
Aline Talhouk, Derek Chiu
PCAplot(mtcars$cyl, mtcars)
PCAplot(mtcars$gear, mtcars)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.