Learn R Programming

rsvd (version 1.0.5)

ggscreeplot: Pretty Screeplot

Description

Creates a pretty screeplpot using ggplot. By default the explained variance is plotted agaings the number of the principal component. Alternatively the explained variance ratio, the cumulative explained variance ratio, or the eigenvalues can be plotted.

Usage

ggscreeplot(rpcaObj, type = c("var", "ratio", "cum", "eigenvals"))

Arguments

rpcaObj

Object returned by the rpca function.

type

String c('var', 'ratio', 'cum', 'eigenvals'), optional.

See Also

rpca, ggplot

Examples

Run this code
# NOT RUN {
#

# }

Run the code above in your browser using DataLab