Description Usage Arguments Details See Also Examples

View source: R/getFactorLoadingsTable.r

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

1 | ```
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`

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

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.