screeplot: Scree Plot

Description Usage Arguments Details Author(s) Examples

Description

This function creates a graphical display of the variances against the number of principal components. It is used to determine how many components should be retained in order to explain a high percentage of the variation in the data

Usage

1
screeplot(pca_obj, ncomp)

Arguments

pca_obj

an object of class pca

ncomp

the number of components to plot

Details

screplot generates 2 graphs that represent respectively the relative variances and the cumulative variances associated with the principal components

Author(s)

Piergiorgio Palla

Examples

1
2
3
## data(cachexiaData)
## pca_obj <- pca(cachexiaData, autoscale = TRUE, exclude = TRUE)
## screeplot(pca_obj, ncomp = 10)

Example output

Loading required package: AUCRF
Loading required package: randomForest
randomForest 4.6-12
Type rfNews() to see new features/changes/bug fixes.
AUCRF 1.1

Attaching package: 'RFmarkerDetector'

The following object is masked from 'package:stats':

    screeplot

RFmarkerDetector documentation built on May 2, 2019, 3:42 p.m.