pcaPPC: Principal component plot

Description Usage Arguments Examples

View source: R/pca_tools.R

Description

Plot (optionally) scaled principal components produced by prcomp

Usage

1
pcaPPC(p, which = 1:length(p$sdev), scale = FALSE)

Arguments

p

"prcomp" list from prcomp

which

a vector with index vector of which PCs to show

scale

if TRUE, scale PCs by the reciprocal of standard deviation. If TRUE PCs share a common scale. If FALSE (default) scale depends on variance reduction.

Examples

1
2
3
# Not the best example--abscissa axes are very crowded.
p <- prcomp(USArrests, scale = TRUE)
pcaPPC( p, scale = TRUE )

jrevenaugh/TSAUMN documentation built on Nov. 8, 2019, 2:20 p.m.