View source: R/getFactorLoadingsTable.r
getScreePlot | R Documentation |
Before running a factor analysis, this function is used to display a scree plot, and copy the table of explained variance to the clipboard.
getScreePlot(data, toClipboard = TRUE)
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. |
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 getFactorLoadingsTable
# Using the built in data frame, mtcars:
getScreePlot(mtcars)
# ...results suggest a two factor solution
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.