Learn R Programming

EMA (version 1.4.7)

plotInertia: Barplot of component inertia percentage for PCA

Description

Barplot of component inertia percentage for Principal Component Analysis (PCA)

Usage

plotInertia(acp, ncp = 5, ...)

Arguments

acp

result from do.pca or PCA function

ncp

number of components displayed, by default 5

...

Arguments to be passed to methods, such as graphical parameters (see 'par').

Value

Barplot of component inertia percentage

See Also

runPCA,PCA

Examples

Run this code
# NOT RUN {
data(marty)

## PCA on sample - example set
example.subset <- marty[1:100,]
pca <- runPCA(t(example.subset), verbose = FALSE, plotInertia = FALSE, plotSample = FALSE)

## Inertia plot of PCA object
plotInertia(pca)
# }

Run the code above in your browser using DataLab