pca.biplot: pca.biplot

Description Usage Arguments Value

Description

Returns biplot of two pc dimensions

Usage

1
pca.biplot(pca.obj, pcs, flip = FALSE, scale = T)

Arguments

pca.obj

Takes pca object made by just.pca()

pcs

Integer input vector of length 2 of which PC dimensions should be plotted

flip

Logical, Default set to FALSE. will flip coordinates over x=y line. Only included because PCA function's biplot seems to always be flipped.

scale

Logical, Default set to TRUE. Will scale vectors to unit circle. If set to FALSE, will use eigenvalues as relative length. Scale set to FALSE will also remove regular coordinates and plotted circle.

Value

ggplot plot of the variables in a coordinate graph of two pc dimensions.


jtlandis/justinmisc documentation built on May 25, 2019, 8:18 a.m.