plot.pca | R Documentation |
Shows a set of plots (scores, loadings, residuals and explained variance) for PCA model.
## S3 method for class 'pca'
plot(
x,
comp = c(1, 2),
ncomp = x$ncomp.selected,
show.labels = FALSE,
show.legend = TRUE,
...
)
x |
a PCA model (object of class |
comp |
vector with two values - number of components to show the scores and loadings plots for |
ncomp |
number of components to show the residuals plot for |
show.labels |
logical, show or not labels for the plot objects |
show.legend |
logical, show or not a legend on the plot |
... |
other arguments |
See examples in help for pca
function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.