Learn R Programming

rsvd (version 0.6)

ggbiplot: Biplot for rPCA using ggplot2

Description

Biplot for rPCA using ggplot2

Usage

ggbiplot(rpcaObj, pcs = c(1, 2), groups = NULL, ellipse = TRUE, alpha.ellipse = 0.2, loadings = TRUE, labels = TRUE, ...)

Arguments

rpcaObj
object containing the sdev component, such as that returned by rpca
pcs
array_like an array with two values indicating which two PCs should be plotted, by default the first two PCs are used, e.g., $c(1,2)$.
groups
optional, factor factor indicating groups
ellipse
draw a 1sd data ellipse for each group
alpha.ellipse
alpha transparency for ellipse
loadings
draw arrows for the variables
labels
label variables
...
arguments passed to or from other methods, see ggplot.

See Also

rpca, ggplot

Examples

Run this code
#See ?rpca

Run the code above in your browser using DataLab