screePlot | R Documentation |
screePlot
generates a scree plot with superimpose parallel analysis
screePlot(data, n.iter = 50, method = c("pc", "pa", "ml"), ...)
data |
a data frame or correlation matrix. |
n.iter |
number of iterations for parallel analysis. |
method |
factoring method ( |
... |
parameters passed to |
The screePlot
function is a wrapper for the psych::parallel
function.
A ggplot2 graph is produced with the scree plot and parallel analysis (scree plot for
simulated data) based on the method chosen. The methods are principal components ("pc"),
principal axis ("pa"), and maximum likelihood ("ml") factoring.
a ggplot2 graph
screePlot(Harman74.cor$cov, method="pc", n.obs=145)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.