Creates a pretty screeplpot using ggplot. By default the explained variance is plotted
agaings the number of the principal component.
Alternatively the eigenvalues, explained variance ratio or the cumulative
explained variance ratio can be plotted.
Usage
ggscreeplot(rpcaObj, type = c("var", "ratio", "cum", "eigenvals"))
Arguments
rpcaObj
object containing the sdev component, such as that returned
by rpca