Learn R Programming

MNM (version 0.95-0)

screeplot.mvPCA: Plotting Method for a Principal Component Object of Type mvPCA

Description

Creates a screeplot for an object of class mvPCA. Works analogously to a normal screeplot for a classical principal component analysis. Here however the y-axis gives the proportion of the variation explained by the components.

Usage

## S3 method for class 'mvPCA':
plot(x, main = deparse(substitute(x)), ...)
## S3 method for class 'mvPCA':
screeplot(x, npcs = min(10, length(x$EigenV)), 
          type = c("barplot", "lines"), 
          main = deparse(substitute(x)), ...)

Arguments

Value

  • A screeplot.

See Also

mvPCA

Examples

Run this code
data(IRIS)
IRIS <- iris[,1:4]
iris.pca <- mvPCA(IRIS, "sign", "i")
plot(iris.pca, type="lines")

Run the code above in your browser using DataLab