Description Usage Arguments Details Author(s) Examples
PCA Scores plot
This function creates a plot that graphically projects the original samples onto the subspce spanned by the first two principal components
1 2 | ## S3 method for class 'pca.scores'
plot(pca_obj, dataset, xrange, yrange)
|
pca_obj |
an object of class pca |
dataset |
a n x p dataframe representing the dataset used to create the pca object |
xrange |
a vector of two elements indicating the range of values along the x-axis in which eventually it will be specified the name of the samples |
yrange |
a vector of two elements indicating the range of values along the y-axis in which eventually it will be specified the name of the samples |
The Scores plot is used for interpreting relations among the observations
Piergiorgio Palla
1 2 3 | ## data(cachexiaData)
## pca_obj <- pca(cachexiaData, autoscale = TRUE, exclude = TRUE)
## plot.pca.scores(pca_obj, cachexiaData)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.