Plot a scree plot adding information about a parallel analysis.
plotParallel(parallel, eig =NA, x = eig, model ="components", legend =TRUE, ylab ="Eigenvalues", xlab ="Components", main ="Parallel Analysis",...)
Arguments
parallel: numeric: vector of the results of a previous parallel analysis
eig: depreciated parameter: eigenvalues to analyse (not used if x is used, recommended)
x: numeric: a vector of eigenvalues, a matrix of correlations or of covariances or a data.frame of data
model: character: "components" or "factors"
legend: logical: indicator of the presence or not of a legend
ylab: character: label of the y axis
xlab: character: label of the x axis
main: character: title of the plot
...: variable: additionnal parameters to give to the cor or cov functions
Returns
Nothing returned.
Details
If eig is FALSE the plot shows only the parallel analysis without eigenvalues.
Examples
## SIMPLE EXAMPLE OF A PARALLEL ANALYSIS## OF A CORRELATION MATRIX WITH ITS PLOT data(dFactors) eig <- dFactors$Raiche$eigenvalues
subject <- dFactors$Raiche$nsubjects
var <- length(eig) rep <-100 cent <-0.95 results <- parallel(subject,var,rep,cent)
results
## PARALLEL ANALYSIS SCREE PLOT plotParallel(results, x=eig) plotParallel(results)
References
Raiche, G., Walls, T. A., Magis, D., Riopel, M. and Blais, J.-G. (2013). Non-graphical solutions for Cattell's scree test. Methodology, 9(1), 23-29.
See Also
plotuScree, nScree, plotnScree, parallel
Author(s)
Gilles Raiche
Centre sur les Applications des Modeles de Reponses aux Items (CAMRI)