plot.principal_components: Biplot for principal components

Description Usage Arguments Value Examples

View source: R/PCA.R

Description

Biplot for principal components

Usage

1
2
## S3 method for class 'principal_components'
plot(x, ..., choices = c(1, 2), vectors = TRUE, vector_names = TRUE)

Arguments

x

An object of class "principal_components"

...

generic arguments

choices

Indices declaring which of the PC's you want to plot

vectors

A boolean declaring whether to include vectors representing the constituents of the principal components

vector_names

A boolean declaring whether to label the vectors

Value

A biplot of the principal components equivalent to that described by Gower and Hand (1996)

Examples

1
2
pca_iris <- pca(iris[,-5], FALSE, 0.95)
plot(pca_iris, choices = c(1, 2),  vectors = TRUE, vector_names = TRUE)

eenticott/PCA documentation built on Jan. 10, 2021, 4:40 p.m.