Learn R Programming

mdatools (version 0.9.1)

plotCumVariance.pca: Cumulative explained variance plot for PCA

Description

Shows a plot with cumulative explained variance for components.

Usage

# S3 method for pca
plotCumVariance(obj, xlab = "Components",
  ylab = "Explained variance, %", main = "Cumulative variance", ...)

Arguments

obj

a PCA model (object of class pca)

xlab

label for x axis

ylab

label for y axis

main

main title for the plot

...

other plot parameters (see mdaplotg for details)

Details

See examples in help for pca function.