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

View source: R/getFactorLoadingsTable.r

getScreePlotR Documentation

Displays a scree plot, and copies the table of explained variance to the clipboard.

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

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

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


Dectech/DectechR documentation built on Feb. 15, 2024, 9:17 a.m.