getScreePlot: Displays a scree plot, and copies the table of explained...

Description Usage Arguments Details See Also Examples

View source: R/getFactorLoadingsTable.r

Description

Before running a factor analysis, this function is used to display a scree plot, and copy the table of explained variance to the clipboard.

Usage

1
getScreePlot(data, toClipboard = TRUE)

Arguments

data

A matrix of numeric data.

toClipboard

Indicates if the table of variance should be written to the cliboard (default) or printed to the console.

Details

This function shows the scree plot to help determine the number of factors to extract, and creates a table of eigenvalues and the percentage of variance explained by different numbers of factors. The table is copied to the clipboard.

See Also

See also getFactorLoadingsTable

Examples

1
2
3
# Using the built in data frame, mtcars:
getScreePlot(mtcars)
# ...results suggest a two factor solution

Dectech/DectechR documentation built on March 21, 2018, 8:46 p.m.