ggscreeplot: Screeplot for Principal Components

Description Usage Arguments Examples

View source: R/ggscreeplot.r

Description

Screeplot for Principal Components

Usage

1
  ggscreeplot(pcobj, type = c("pev", "cev"))

Arguments

pcobj

an object returned by prcomp() or princomp()

type

the type of scree plot. 'pev' corresponds proportion of explained variance, i.e. the eigenvalues divided by the trace. 'cev' corresponds to the cumulative proportion of explained variance, i.e. the partial sum of the first k eigenvalues divided by the trace.

Examples

1
2
3
data(wine)
wine.pca <- prcomp(wine, scale. = TRUE)
print(ggscreeplot(wine.pca))

duhanguler/ggbiplot documentation built on May 17, 2019, 3:14 a.m.