Description Usage Arguments Value Examples
Returns the distance plot and the score plot providing a data matrix and a Principal Component Analysis (PCA) model. Observations can be identified by the obstag input argument.
1 2 3 4 5 6 7 8 9 10 11 |
X |
Matrix with the data to be displayed. |
pcamodel |
List with the PCA model elements. |
obstag |
Optional column vector of integers indicating the group of each
observation ( |
pcx |
Optional integer with the number of the PC in the horizontal axis.
Set to |
pcy |
Optional integer with the number of the PC in the vertical axis.
Set to |
alpha |
Optional number between 0 and 1 expressing the type I risk assumed in
the computation of the confidence ellipse,
set to |
nrow |
Optional number of rows the plot layout. Set to |
ncol |
Optional number of columns the plot layout. Set to |
legpos |
Optional string with the position of the legend. Set to |
ggplot object with the generated score plot.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.